Newton OS concepts sampler
C++
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
.gitignore
CircleBuf.h
Exports.exp
Logger.cp
Logger.h
Main.cp
Makefile
README.md
RelocHack.a
Sample App View
Sampler App
Sampler App.pkg

README.md

This is an example project for NewtonOS tasks and memory management

Notes:

  • Deleting a TUAsyncMessage which was sent prior to it being received will cause a -10015 error (invalid object ID). To investigate further: either use RPC to delete the message once it has been received, check the usage of kMsgType_Collected... flags, or use Receive which uses TUAsyncMessage
  • Resending a TUAsyncMessage will cause a -10017 error (message already posted) if it has not been received in the meantime
  • Receive with a TUAsyncMessage paramter is asynchronous
  • When sending a TUAsyncMessage, the content parameter cannot be deleted or go out of scope before the message is received
  • TUPort::Send with a TUAsyncMessage parameter is a convenience function which copies the data to be sent into the fMsg instance variable of the message