Defined in:Triggers a signal.
void TriggerSignal(int32 index = 0);
||The index of the signal to trigger.|
TriggerSignalfunction activates a specific signal inside a signal object. The signal specified by the
indexparameter must be in the range [0,
count− 1], where
countis the number of signals specified when the signal object was constructed. When the
TriggerSignalfunction is called, any thread waiting on the signal object using the
Signal::WaitSignalfunction is unblocked, and the return value of the
Signal::WaitSignalfunction is the same as the
indexvalue passed to the
It is possible to assign a signal to a thread using the
Thread::SetThreadSignalfunction. If this is done, then the destructor for the
Threadclass will trigger signal 0 of the signal object to indicate to the thread's code that it should exit.