Distributed Systems Network Management (DSNM) Subsystem Interface Development Guide

I Process Development Process
Distributed Systems Network Management (DSNM) Subsystem Interface Development
Guide109759 3-43
Altering the Current Thread Procedure and Thread
State
Dispatching a New Thread Procedure: _DISPATCH^THREAD
_DISPATCH^THREAD returns to the frame and causes a new dispatch.
_DISPATCH^THREAD does not save any information about the procedure from which
it was invoked.
Saving Context and Dispatching a New Thread Procedure:
_SAVE^THREAD^AND^DISPATCH
_SAVE^THREAD^AND^DISPATCH saves the current thread procedure and state,
optionally sets new thread procedure and state values, and returns to the frame for
immediate dispatch with the specified event (or _EV^CONTINUE if none specified).
Restoring and Dispatching Previous Context:
_RESTORE^THREAD^AND^DISPATCH
_RESTORE^THREAD^AND^DISPATCH restores the thread procedure and state last
saved, and dispatches it with the specified event (or _EV^CONTINUE if none
specified).
Figure 3-8 illustrates using _SAVE^THREAD^AND^DISPATCH,
_RESTORE^THREAD^AND^DISPATCH, and _DISPATCH^THREAD.
_DISPATCH^THREAD ([ @procname ]
,[ state ]
,[ event ]);
_SAVE^THREAD^AND^DISPATCH ([ @procname ]
,[ state ]
,[ event ]);
_RESTORE^THREAD^AND^DISPATCH ([ event ]);