Distributed Systems Network Management (DSNM) Subsystem Interface Development Guide
I Process Development Process
Distributed Systems Network Management (DSNM) Subsystem Interface Development
Guide—109759 3-57
Overview of the Library Services
Processing @lm := _PUT^LM (list ,[ length ]
, initlength ,[ initdata ] );
@lm := _GET^LM (list ,[ length ] )
FIFO processing (first in, first out):
adds new last member; removes current
first member.
@lm := _PUSH^LM (list ,[ length ] ,
initlength ,[ initdata ] );
@lm := _POP^LM (list ,[ length ] );
LIFO processing (last in, first out):
adds new last member; removes current
last member.
error := _UNGET (list ,
list-member );
error := _UNPOP (list ,
list-member );
Replaces last list member removed
from a list.
Maintenance error := _DELETE^LM (list,
@list-member);
Deletes any member of list.
CALL _DEALLOCATE^LIST (list ); Deallocates all members of list.
error := _JOIN^LIST (list1, list2 ); Concatenates lists.
Returns
information about
a list
IF _EMPTY^LIST (list ) THEN ... TRUE if list has no members.
num := _MEMBERSOF^LIST (list ); Number of current list members.
State Management
Altering current
thread procedure/
thread state
_SET^THREADPROC (@procname ); Sets current thread procedure to be
called at next thread dispatch.
_THREAD^STATE Current thread state; may be tested or
altered.
_DISPATCH^THREAD ( [ @procname ]
,[ state ] ,[ event ] );
Returns to frame for immediate
dispatch with specified event, after
optionally setting current thread
procedure and state.
_RESTORE^THREAD^AND^DISPATCH
( [ event ] );
Restores thread procedure and state last
pushed, and returns to thread for
immediate dispatch with specified
event.
_SAVE^THREAD^AND^DISPATCH
( [ @procname ] ,[ state ] ,[ event ] );
Saves current thread procedure and
state, and returns to frame for
immediate dispatch of new (or same, if
none specified) thread procedure in
specified state.
error := _PUSH^THREAD^PROCSTATE
( [ @procname ] ,[ state ] );
error := _POP^THREAD^PROCSTATE;
Saves current thread procedure and
state and optionally sets new current
thread procedure and state; restores
previously pushed thread procedure
and state.
_ST^MIN^THREAD^STATE Minimum value of user-defined thread
state.
_ST^INITIAL Thread state value when thread created.
Table 3-1. Summary of I Process Development Library Services (page 4 of 6)
Function Arguments Description