AMX 86 Procedures
K
A
DAK
295
ajsgrd ajsgrd
Purpose Read Pending Task Signals
Used by n Task o IS P o Timer Procedure o Restart Procedure n Exit Procedure
Setup unsigned int tsignals;
.
.
tsignals = ajsgrd();
AX
Where tsignals is the current state of the calling task's task signals.
Results Interrupts are untouched.
tsignals contains the current value of each of the task's 15 task signals in
the least significant 15 bits (bits 0 to 14). All other bits of tsignals will
be 0.
If a task signal bit in tsignals is set, it means that the corresponding task
signal has been signalled at least once (by some call to ajsgnl) following
the most recent call by this task to ajsgres to reset that task signal OR to
ajsgwat to wait for that task signal.
Restriction A task can only read its own task signals. It cannot read the task signals of
any other task.
See Also ajsgwat, ajsgnl, ajsgres