Distributed Systems Network Management (DSNM) Subsystem Interface Development Guide
Altering the Current Thread Procedure and Thread
State
3-42
109759—Distributed Systems Network Management (DSNM) Subsystem Interface
Development Guide
I Process Development Process
Figure 3-7. Altering Current Thread Procedure and Thread State Values
011
_THREAD^STATE := STATE^A;
_PUSH^THREAD^PROCSTATE (@PROC^Y, STATE^B);
_SIGNAL^EVENT; RETURN to dispatch PROC^Y in STATE^B.
_POP^THREAD^PROCSTATE;
_SIGNAL^EVENT; RETURN to dispatch PROC^X in STATE^A.
_PUSH^THREAD^PROCSTATE;
_SET^THREAD^PROC (@PROC^Z);
_THREAD^STATE := STATE^C;
PROC^X _ST^INITIALCurrent
PROC^X of command thread executing in
_ST^INITIAL.
PROC^X executing in STATE^A.
PROC^X executing in STATE^A, but next time
it RETURNs to frame, PROC^Y of command
thread is dispatched in STATE^B.
PROC^Y executing in STATE^B, but next time it
returns to frame, PROC^X of command thread is
dispatched in STATE^A.
PROC^X still executing in STATE^A.
PROC^X still executing in STATE^A, but next
time it returns to frame, PROC^Z of command
thread is dispatched in STATE^C.
PROC^X STATE^ACurrent
PROC^Y STATE^B
PROC^X STATE^A
Current
PROC^X STATE^ACurrent
PROC^X STATE^A
PROC^X STATE^A
Current
PROC^Z STATE^C
PROC^X STATE^A
Current