Description
The nanosleep function delays the
execution of the calling thread until either the time
interval given by rtqp has elapsed
or a signal is handled by the thread.
Returns
The nanosleep function returns
zero to indicate the given time interval has elapsed.
Otherwise it returns -1 to indicate that the delay has
been interrupted, and sets rmtp
to the time interval remaining.
Implementation Notes
The resolution of nanosleep
is determined by the interrupt period of the real
time clock. This is set to 10 mSec in the file crt0.
|
The maximum time interval is 2147483647.999 seconds,
or approximately 68 years.
|