SENDSIG - send a signal to another task
- Input
-
-
C=0 - set thread to sleep until it receives a signal
-
C=1 - send a signal to another task
-
AC - signal mask to send
-
XR - destination task
-
-
- Call
-
jsr SENDSIG
- Output
-
-
C=1 - error
-
AC - error code
-
-
C=0 - success
-
AC - E_OK
-
-
Note
|
XR and YR are preserved. |
Sends a signal to another task. In this process the bit corresponding to the signal is set in the pending signal bitmap of the receiving task.
Error return codes are given when at return, C=1.
- E_OK
-
signal was delivered successfully
- E_NOTASK
-
the receiving task is not active
- E_INT
-
the task was waiting (blocking) for a signal, and a signal was received.
Please report bugs at https://github.com/fachat/GeckOS-V2/issues