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.
Generated with WebMaker