Causes the calling thread to give up control to the processor for the given number of milliseconds.
Syntax:
call "CBL_THREAD_SLEEP" using by value milliseconds
Parameters:
|
Using call prototype (see
Key)
|
Picture
|
milliseconds
|
cblt-os-size
|
pic x(4) comp-5
or
pic x(8) comp-5 (64-bit native programs only)
|
On Entry:
milliseconds
|
Number of milliseconds
|
Comments:
If the operating system does not support yielding a thread for millisecond granularity, then the units are scaled to a granularity that the operating system supports. The scaling is performed rounding to the nearest operating system supported unit.