Distributed Systems Network Management (DSNM) Subsystem Interface Development Guide
_LAST^TIMEOUT^TAG
A-70
109759—Distributed Systems Network Management (DSNM) Subsystem Interface
Development Guide
DSNM Library Services
_LAST^TIMEOUT^TAG
_LAST^TIMEOUT^TAG is a command context field, set to the INT(32) timeout tag
associated with the _SET^TIMEOUT request, and completed by the last
_EV^TIMEOUT event. It is convenient to use the address of a list member as a timeout
tag to hold information about the purpose of the timeout, as illustrated in the example.
Example
STRUCT time^info^def (*);
BEGIN
.
.
END;
INT .EXT time^info (time^info^def);
IF _ISNULL(@time^info := _PUT^LM (cx.worklist,,$LEN(time^info)))
THEN ... < out of memory > ;
< fill in time^info data >
CALL _SET^TIMEOUT (time, @time^info);
RETURN _RC^WAIT; !Wait for _EV^TIMEOUT
.
.
.
IF _ON (_LAST^EVENTS, _EV^TIMEOUT)
THEN
BEGIN
@time^info := cx._LAST^TIMEOUT^TAG;
< process time^info data >
CALL _DELETE^LM (cx.worklist, @time^info);
END;
command-context._LAST^TIMEOUT^TAG