Guardian Procedure Calls Reference Manual (G06.25+)
Guardian Procedure Calls (D-E)
Guardian Procedure Calls Reference Manual—522629-013
4-52
DELAY Procedure
(Superseded by PROCESS_DELAY_ Procedure (H-
DELAY Procedure
(Superseded by PROCESS_DELAY_ Procedure
(H-Series RVUs Only))
Summary
Syntax for C Programmers
Syntax for TAL Programmers
Parameters
Considerations
Example
Summary
The DELAY procedure permits a process to suspend itself for a timed interval.
Syntax for C Programmers
•
CEXTDECS (via the included file TNSINTH) defines 32-bit values as the typedef
__int32_t which for TNS and TNS/R compiles is defined as
long and for TNS/E
compiles is defined as
int.
Syntax for TAL Programmers
Parameters
time-period input
INT(32):value
specifies the time period, in 0.01-second units, for which the caller of DELAY is to
be suspended.
Considerations
•
time-period value <= 0D
A value of less than or equal to 0D results in no delay as such but returns this
process’s process control block (PCB) to the ready list to give other processes of
the same priority a chance to execute.
#include <cextdecs(DELAY)>
void DELAY ( __int32_t time-period );
CALL DELAY ( time-period ); ! i