[Overview][Constants][Types][Procedures and functions][Index] Reference for unit 'Exec' (#aros)


Wait for one or more signals


Source position: exec.pas line 1261

function Wait(

  SignalSet: ULONG





The set of signals for which to wait. Each bit represents a particular signal.

Function result

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.


This function cannot be called while in supervisor mode or interrupts! This function will break the action of a Forbid() or Disable() call.

Documentation generated on: 2017-01-10