Wait for one or more signals
Source position: exec.pas line 1801
function Wait( |
SignalSet: LongWord |
):LongWord; |
SignalSet |
|
The set of signals for which to wait. Each bit represents a particular signal. |
The set of signals that were active
This function will cause the current task to suspend waiting for one or more signals. When one or more of the specified signals occurs, the task will return to the ready state, and those signals will be cleared.
If a signal occurred prior to calling Wait(), the wait condition will be immediately satisfied, and the task will continue to run without delay.
Warning:
This function cannot be called while in supervisor mode or interrupts! This function will break the action of a Forbid() or Disable() call.