Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

pthread_delay_np(3) [osf1 man page]

pthread_delay_np(3)					     Library Functions Manual					       pthread_delay_np(3)

NAME
pthread_delay_np - Delays a thread's execution. LIBRARY
DECthreads POSIX 1003.1c Library (libpthread.so) SYNOPSIS
#include <pthread.h> int pthread_delay_np( const struct timespec *interval); STANDARDS
None PARAMETERS
Number of seconds and nanoseconds to delay execution. The value specified for each must be greater than or equal to zero. DESCRIPTION
This routine causes a thread to delay execution for a specific interval of time. This interval ends at the current time plus the specified interval. The routine will not return before the end of the interval is reached, but may return an arbitrary amount of time after the end of the interval is reached. This can be due to system load, thread priorities, and system timer granularity. Specifying an interval of zero (0) seconds and zero (0) nanoseconds is allowed and can be used to force the thread to give up the processor or to deliver a pending cancelation request. The timespec structure contains the following two fields: tv_sec is an integral number of seconds. tv_nsec is an integral number of nanoseconds. RETURN VALUES
If an error condition occurs, this routine returns an integer value indicating the type of error. Possible return values are as follows: Successful completion. The value specified by interval is invalid. ERRORS
None RELATED INFORMATION
Manuals: Guide to DECthreads and Programmer's Guide delim off pthread_delay_np(3)

Check Out this Related Man Page

tis_get_expiration(3)					     Library Functions Manual					     tis_get_expiration(3)

NAME
tis_get_expiration - Obtains a value representing a desired expiration time. LIBRARY
Standard C Library (libc.so, libc.a) SYNOPSIS
#include <tis.h> int tis_get_expiration( const struct timespec *delta, struct timespec *abstime); STANDARDS
None PARAMETERS
Number of seconds and nanoseconds to add to the current system time. (The result is the time in the future.) This result will be placed in abstime. Value representing the absolute expiration time. The absolute expiration time is obtained by adding delta to the current sys- tem time. The resulting abstime is in Universal Coordinated Time (UTC). DESCRIPTION
If threads are not present, this routine has no effect. to sleep(3). This routine adds a specified time interval to the current absolute system time and returns a new absolute time. This new absolute time is used as the expiration time in a call to tis_cond_timedwait(3). The timespec structure contains the following two fields: tv_sec is an integral number of seconds. tv_nsec is an integral number of nanoseconds. RETURN VALUES
If an error condition occurs, this routine returns an integer value indicating the type of error. Possible return values are as follows: Successful completion. The value specified by delta is invalid. ERRORS
None RELATED INFORMATION
Functions: tis_cond_timedwait(3) Manuals: Guide to DECthreads and Programmer's Guide delim off tis_get_expiration(3)
Man Page