Distributed Systems Network Management (DSNM) Subsystem Interface Development Guide
DSNM Library Services
Distributed Systems Network Management (DSNM) Subsystem Interface Development 
Guide—109759 A-39
_DISPATCH^THREAD
_DISPATCH^THREAD
_DISPATCH^THREAD returns to the frame and causes a new dispatch. It is effective 
only in a thread procedure, not in an auxiliary procedure or a subprocedure.
_DISPATCH^THREAD saves no information about the procedure from which it was 
invoked.
This function cannot detect any failures and performs an unconditional RETURN 
operation.
procname input
is the dispatched thread procedure. The default is the current procedure.
state input
INT: value
is an INT expression that designates the new current thread state when the thread is 
dispatched.  The default is the current state.
event input
INT:value
is an INT expression that designates the event(s) with which the new procedure is 
dispatched. The default is _EV^CONTINUE.
To use _DISPATCH^THREAD with no arguments (accepting all defaults), you must use 
the following construction:
_DISPATCH^THREAD ( );
To immediately redispatch the current thread in the current state, use 
_DISPATCH^THREAD with the first two arguments blank:
_DISPATCH^THREAD ( , , event ); 
Example
_DISPATCH^THREAD (@next^proc, ,_REAL^LAST^EVENTS);
_DISPATCH^THREAD (@myproc, _ST^INITIAL, my^event);
_DISPATCH^THREAD (@myproc, my^state, my^event);
_DISPATCH^THREAD ( [ @procname ]
 ,[ state ]
 ,[ event ] );










