Distributed Systems Network Management (DSNM) Subsystem Interface Development Guide

I Process Development Process
Distributed Systems Network Management (DSNM) Subsystem Interface Development
Guide109759 3-15
Command Context Space
Use _THREAD^TERMINATION^PROC in the following construction:
_THREAD^TERMINATION^PROC (_COMMAND^TERMINATION^PROC);
BEGIN
.
.
< procedure body >
.
! for example, free lists, close the open CI(s) and
! return, leaving the input and output lists for the
! frame
CALL _DEALLOCATE^LIST (...);
CALL _CLOSE^CI (...);
.
_END^THREAD^TERMINATION^PROC;
Command Context Space
When the frame receives a command, it allocates memory for a command context space
and creates an instance of the command thread. You define the command context space
in your globals area to include the following:
An input area, where the frame places the following command components for
access by the command thread: the command's action, modifiers, parameter list, and
the input list of objects on which the command operation is performed.
An output area, where the frame predefines the output list. The thread will place the
objects with their associated states and/or text in response to the operation having
been performed in the output list.
A user area, customized by the thread.
A control context area reserved for use by the frame for state variable maintenance
and multithreading. The frame saves such variables as the current thread state, the
current thread procedure, and the event(s) that caused the current dispatch in the
control context area.
You define the input and output list members and the user area by specifying a structure
template for each. The first part of each structure is reserved for use by the frame.