Open System Services System Calls Reference Manual (G06.25+, H06.03+)

spt_usleep(2) OSS System Calls Reference Manual
NAME
spt_usleep - Suspends execution of the thread for a specied number of microseconds
LIBRARY
G-series native OSS processes: /G/system/sysnn/zsptsrl
H-series OSS processes: /G/system/zdllnnn/zsptdll
SYNOPSIS
#include <spthread.h>
int spt_usleep (
unsigned int useconds );
PARAMETERS
useconds Species the number of microseconds for which the thread is to
be suspended. The value specied must be less than or equal to
1000000.
DESCRIPTION
The spt_usleep() function suspends a thread for a specied number of microseconds. A certain
amount of delay can be expected in the processing of the spt_usleep() call because of other
processor-intensive or input/output-intensive threads.
RETURN VALUES
The spt_usleep() function returns the value 0 (zero) when the call completes successfully. Oth-
erwise, spt_usleep() returns -1 and sets errno.
ERRORS
If the following condition occurs, spt_usleep() sets errno to the corresponding value:
[EINTR] A pthread_kill() function call received a signal that is not
blocked, ignored, or handled.
[EINVAL] The value specied for the useconds parameter was greater than
1000000.
RELATED INFORMATION
Functions: spt_sleep(2).
STANDARDS CONFORMANCE
This function is an extension to the UNIX98 specication. Interfaces documented on this refer-
ence page conform to the following industry standards:
IEEE Std 1003.1c-1995, POSIX System Application Program Interface
The use of the header le spthread.h is an HP exception to the POSIX standard.
7152 Hewlett-Packard Company 527186-003