AMX 86 Procedures
K
A
DAK
335
ajtrig ajtrig
Purpose Trigger a Task
To request AMX to start a task without sending a message to the task.
Used by n Task n IS P n Timer Procedure n Restart Procedure n Exit Procedure
Setup AMXID taskid;
int status;
.
.
status = ajtrig(taskid);
AX DX
Where taskid is the task id of the task to be triggered.
Results Interrupts are disabled and then restored to their state at the time of the
call.
Status is returned.
AEROK = Call successful
AERNST = Invalid task id
An immediate task switch will occur if the task being triggered is of
higher priority than the current task.
See Also ajsend, ajend