pthread_get_expiration_np(3)pthread_get_expiration_np(3)NAMEpthread_get_expiration_np - Obtains a value representing a desired
expiration time
SYNOPSIS
#include <pthread.h>
int pthread_get_expiration_np(
const struct timespec *delta,
struct timespec *abstime );
LIBRARY
DECthreads POSIX 1003.1c Library (libpthread.so)
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 system time.
The resulting abstime is in Universal Coordinated Time (UTC).
DESCRIPTION
This routine adds a specified 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 pthread_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 nanosecā
onds.
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
SEE ALSO
Functions: pthread_cond_timedwait(3)
Manuals: Guide to DECthreads and Programmer's Guide
pthread_get_expiration_np(3)