ezEngine  Milestone 7
ezThreadSignal Class Reference

Public Member Functions

void WaitForSignal ()
 Waits (and puts the waiting thread to sleep), until the signal is raised.
 
void RaiseSignal ()
 Wakes up one thread that is currently waiting for this signal. More...
 

Private Attributes

ezThreadSignalData m_Data
 

Member Function Documentation

void ezThreadSignal::RaiseSignal ( )

Wakes up one thread that is currently waiting for this signal.

If no thread is currently waiting for the signal, it stays set, and the next thread that calls 'WaitForSignal' will will continue uninterrupted. If more than one thread is waiting for the signal, one of them is awoken (randomly), while the others stay asleep. The signal is reset immediately after awakening one thread, so it must be signaled again to awaken another thread.


The documentation for this class was generated from the following files: