Local utility classes

Concurrent Actors has a few classes that aren't part of a subsystem:

TPCQueue is used by the Universe subsystem for queueing actor insertions and deletions. For an example, see
"Destroying actors cleanly" (page 39).

The thread classes are used by the Movement, Refresh, and Universe subsystems. TPeriodicThread is the base class for the time-based movement and refresh threads. TStubThreadProgram and TBoundThreadProgram separate the protocol of the thread object from the thread state.


The TBoundThreadProgram class implements a thread program whose state can be safely accessed during execution and after termination of the thread itself.

The TStubBoundThreadProgram class simply acts as a "starter" for a TBoundThreadProgram. When a thread is created, the Run member function of the TStubBoundThreadProgram is called by the OS Kernel. This in turn calls the BoundPrepare and BoundRun member functions of the TBoundThreadProgram.

The TPeriodicThread subclass implements a thread-program that is run at periodic intervals.


[Contents] [Previous] [Next]
Click the icon to mail questions or corrections about this material to Taligent personnel.
Copyright©1995 Taligent,Inc. All rights reserved.

Generated with WebMaker