Unit 'EXEC' Package
[Overview][Constants][Types][Procedures and functions][Variables][Index] [#amunits]

Wait

Wait for one or more signals

Declaration

Source position: exec.pas line 1294

function Wait(

  signalSet: LongWord

):LongWord;

Arguments

signalSet

  

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

Function result

The set of signals that were active

Description

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.


Documentation generated on: 2021-07-30