Signalclass encapsulates a signal object for multithreaded synchronization.
||Triggers a signal.|
||Waits for a signal to be triggered.|
explicit Signal(int32 count = 1);
||The number of separate signals that can be triggered. This must be a positive number less than |
Signalclass defines a platform-independent signal object that can be used for multithreaded synchronization. A signal object encapsulates up to
kMaxSignalCountseparate binary signals that can be individually triggered. A thread can wait on a signal object using the
Signal::WaitSignalfunction in order to block itself until another thread activates the signal using the
WARNING. If a signal object is destroyed while a thread is waiting on it, then the behavior is undefined.