Causes a thread to delay execution.
pthread_delay_np(
interval );
Argument Data Type Access
interval struct timespec read
extern int pthread_delay_np ( struct timespec *interval);
Specifying an interval of 0 seconds and 0 nanoseconds is allowed and can result in the thread giving up the processor or delivering a pending cancel.
The struct timespec structure contains the following two fields:
Return Error Description0 Successful completion. -1 [EINVAL] The value specified by interval is invalid.