314
K
A
DAK
AMX 86 Procedures
ajsusp ajsusp
Purpose Suspend a Task
Used by n Task o IS P n Timer Procedure n Restart Procedure n Exit Procedure
Setup AMXID taskid;
int status;
.
.
status = ajsusp(taskid);
AX DX
Where taskid is the task id of the task to be suspended.
Results Interrupts are disabled and then restored to their state at the time of the
call.
The task will be suspended until some other task, ISP or Timer Procedure
issues an ajresum call to resume this task.
Status is returned.
AEROK = Call successful
AERNST = Invalid task id
Note A task can suspend itself using ajsusp. However, it is preferred that you
use ajwait for this purpose.
See Chapter 13.5 for a description of the intended purpose and use of this
procedure.
Restriction You must not suspend the AMX Kernel Task.
See Also ajresum