|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Download Source Code | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
CTlSignal Class ReferenceEncapsulates two events for syncronizing threads. More...
Detailed DescriptionEncapsulates two events for syncronizing threads.Typical use Worker thread... // Ready for work g_cSignal.SignalDone(); // Worker thread loop while ( g_cSignal.WaitStart( INFINITE ) ) { // Acknowledge start g_cSignal.ResetStart(); // Want exit? if ( g_bExit ) break; // Do the work DoWork(); // Signal that we're done g_cSignal.SignalDone(); } // end while User Thread... // Is thread done with the last task? if ( g_cSignal.WaitDone( 0 ) ) { // Acknowledge done g_cSignal.ResetDone(); CreateWork(); // Start the worker thread g_cSignal.SignalStart(); } // end if // Go do something else
Member Function Documentation
The documentation for this class was generated from the following file:
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Copyright Robert Umbehant This documentation is covered by the LGPL |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||