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

Signal

Signal a task

Declaration

Source position: exec.pas line 1285

procedure Signal(

  task: pTask;

  signalSet: LongWord

);

Arguments

task

  

The task to be signalled

signalSet

  

The signals to be sent

Description

This function signals a task with the given signals. If the task is currently waiting for one or more of these signals, it will be made ready and a reschedule will occur. If the task is not waiting for any of these signals, the signals will be posted to the task for possible later use. A signal may be sent to a task regardless of whether it is running, ready, or waiting.

This function is considered "low level". Its main purpose is to support multiple higher level functions like PutMsg().

This function is safe to call from interrupts.

See also

Wait

  

Wait for one or more signals

SetSignal

  

Define the state of this task's signals


Documentation generated on: 2021-07-30