GDSX Manual

Service Routines
Extended General Device Support (GDSX) Manual134303
8-88
WAKE^TASK
specifies the number of ticks (10 ms) to wait for any masked event to complete, after
which the E^TIMEOUT event is returned. The value of timeout is one of the
following:
Consideration
This procedure suspends the calling task.
Examples
See the two calls to WAIT^EVENT, one in the CANCEL^ITC subprocedure and one in
the main entry, in the LINE^HANDLER of USKELEX (see Appendix B).
WA K E ^ TA S K
This procedure allows any task to cause an event for any other task that has posted a
WAIT^EVENT.
tcb input
INT .EXT:ref
is a pointer to the TCB for the task that is to receive the event.
cause input
INT:value
is the event to be posted. Any of the following events can be posted against the
target task:
-1D Task waits indefinitely
-2D Task waits the time remaining from the previous call to WAIT^EVENT
CALL WAKE^TASK ( tcb !
i
,cause ); !
i
Event Description Literal Identifier
Literal
Constant
Associated
IOCB
No event: timeout occurred E^TIMEOUT 0
Request that task call STOP^TASK E^STOP 1
Resume processing E^CONTINUE 2
Intertask message or I/O canceled E^CAN 3 X
Message arrived from $RECEIVE E^IMSG 4 X
Intertask message arrived E^ITC 5 X