Distributed Systems Network Management (DSNM) Subsystem Interface Development Guide
Timeout Intervals
3-50
109759—Distributed Systems Network Management (DSNM) Subsystem Interface
Development Guide
I Process Development Process
File Number: _CI^FILENUM
_CI^FILENUM is the type INT file number of the CI involved with the most-recently
completed communication.
Timeout Intervals
The command thread may create a pause by arranging for a future timeout event and
then returning to the thread to wait for it.
Requesting a Timeout Interval: _SET^TIMEOUT
Use _SET^TIMEOUT to delay for a time interval:
After initiating the request, the thread returns to the frame with _RC^WAIT.
When the time interval elapses, the frame dispatches the thread with the event
_EV^TIMEOUT. time-interval establishes the time in hundredths (0.01)
of a second and is a type INT(32) expression.
tag is a type INT(32) expression.
Accessing the Timeout Request Tag: _LAST^TIMEOUT^TAG
Use _LAST^TIMEOUT^TAG to access the tag associated with a timeout request:
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 following 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
filenumber := _CI^FILENUM ( ciid )
CALL _SET^TIMEOUT ( time-interval
,[ tag ] );
_LAST^TIMEOUT^TAG