AMX 86 Procedures
K
A
DAK
343
ajwake ajwake
Purpose Wake a Waiting Task
To wake up a task known to be waiting because of an ajwait or ajwatm
call.
Used by n Task n IS P n Timer Procedure o Restart Procedure n Exit Procedure
Setup AMXID taskid;
int status;
.
.
status = ajwake(taskid);
AX DX
Where taskid is the task id of the task to be wakened.
Results Interrupts are disabled and then restored to their state at the time of the
call.
Status is returned.
AEROK = Call successful
AERWKP = Warning: Task was not waiting
Wake request is now pending
AERNST = Invalid task id
AERTNW = Task was not waiting and a wake request was already
pending before this ajwake call
An immediate task switch will occur if the task being wakened is of higher
priority than the current task.
Note This procedure provides a simplified form of task signalling (see ajsgnl).
See Also ajwait, ajwatm, ajwapr, ajsgnl