Distributed Systems Network Management (DSNM) Subsystem Interface Development Guide
_THREAD^TERMINATION^PROC
A-128
109759—Distributed Systems Network Management (DSNM) Subsystem Interface
Development Guide
DSNM Library Services
_THREAD^TERMINATION^PROC
_THREAD^TERMINATION^PROC defines a procedure responsible for cleaning up the 
thread’s environment after a command successfully completes or after a thread 
abnormally terminates. It is the required name of the thread termination procedure for 
the I process.
_THREAD^TERMINATION^CODE may be accessed and/or altered in the thread 
termination procedure.
The thread termination procedure declared with _THREAD^TERMINATION^PROC 
must end with _END^THREAD^TERMINATION^PROC. 
Examples
Use _THREAD^TERMINATION^PROC in the following construction:
_THREAD^TERMINATION^PROC (_COMMAND^TERMINATION^PROC);
 BEGIN
 .
 .
 < procedure body >
 .
 ! For example, may free lists and return, leaving the 
 ! thread’s original termination code 
 ! (_THREAD^TERMINATION^CODE) unchanged, and leaving
 ! official input and output lists to the frame.
 CALL _DEALLOCATE^LIST (...);
 CALL _CLOSE^CI (...);
 RETURN _RC^NULL;
 _END^THREAD^TERMINATION^PROC;
_THREAD^TERMINATION^PROC ( _COMMAND^TERMINATION^PROC);










