342
K
A
DAK
AMX 86 Procedures
ajwakcs ajwakcsPurpose Wake Calling Task (Acknowledge Receipt of Message with Status)
To allow the current task to wake up the task which sent the message
which is being processed by the current task and return completion status
to that task.
Used by n Task o IS P o Timer Procedure o Restart Procedure n Exit Procedure
Setup int status;
int result;
.
.
status = ajwakcs(result);
AX CX
Where result is an integer value (>=0) to be returned to the calling task.
Results Interrupts are disabled and then restored to their state at the time of the
call.
Status is returned.
AEROK = Call successful
AERCNW = Task which sent the message is not waiting.
AERNMT = Current task is not processing a received message from
another task.
AERIRS = Invalid result status (result < 0)
The message sender was not wakened.
An immediate task switch will occur if the task being wakened is of higher
priority than the current task.
Note Calling this procedure with result = AEROK (0) is equivalent to a call to
procedure ajwakc.
See Also ajsenw, ajend, ajwakc