Exporting objects for use by others Apart from communicating by using messages, it is also possible to export a pointer to an object, enabling direct access. The way to do this is to put this pointer in a message requesting the functionality. As we have to keep track of all threads accessing a given object, it is necessary to use reference counting pointers for this. You do not have to make your class inherit from a specific base class in order to be able to use them, as the counter object is kept separate. You should always initialise pointers from other pointers except the very first time.
Mnemonic core uses threads heavily.
A number of classes wrapping posix threads is available. For detailed information, see threads . To keep track of the number of threads accessing a given objects, reference counted pointers should be used. The mnemonic core contains an efficient mechanism to output debugging information, which can be completely removed from the source with a single compilation option. This argument can be ALL in which case the debug statements of all modules become active.