Guardian Procedure Calls Reference Manual (G06.25+)
Guardian Procedure Calls (S)
Guardian Procedure Calls Reference Manual—522629-013
14-65
SETLOOPTIMER Procedure
For example, a process’s main execution loop can be written as follows:
-->
| |
| start:
| CALL SETLOOPTIMER ( 1000 );
| IF < THEN ... ;
| | .
| | . ! enable loop timing.
| | . ! Time-limit value is 10 seconds.
| | .
| CALL WRITEREAD ( termfnum ,... );
| | .
| | . ! process executes when terminal input is made.
| | . ! Loop-timer value is not decremented while
| | . ! process is suspended waiting for I/O.
| |
| terminal input is processed.
-----
OSS Considerations
When the process loop-timer expires for an OSS process, a SIGTIMEOUT signal is
generated.
Example
CALL SETLOOPTIMER ( NEW^TIME );