Distributed Systems Network Management (DSNM) Subsystem Interface Development Guide

_THREAD^STATE
A-126
109759Distributed Systems Network Management (DSNM) Subsystem Interface
Development Guide
DSNM Library Services
_THREAD^STATE
_THREAD^STATE accesses an INT variable that represents the current state of the
thread. _THREAD^STATE may be set or tested.
Considerations
The frame sets the thread state to _ST^INITIAL when it creates a thread.
Subsequently, you may alter the thread state as desired; the frame never uses it
again.
Thread state values less than the library literal _ST^MIN^THREAD^STATE are
reserved. State values are always nonnegative. At present, _ST^INITIAL is the
only reserved value.
The current thread state may altered with _DISPATCH^THREAD,
_PUSH^THREAD^PROCSTATE, _POP^THREAD^PROCSTATE,
_SAVE^THREAD^AND^DISPATCH, or
_RESTORE^THREAD^AND^DISPATCH.
Example
The following example tests and alters the current state of the thread:
CASE _THREAD^STATE OF
BEGIN
_ST^INITIAL ->
...
OTHERWISE ->
...
END;
.
.
.
_THREAD^STATE := thr^state2;
_THREAD^STATE