pthread_get_expiration_np(3-thr) pthread_get_expiration_np(3-thr)
NAME
pthreadgetexpirationnp - obtains a value representing a desired
expiration time
SYNOPSIS
#include <pthread.h>
int pthreadgetexpirationnp(
struct timespec *delta,
struct timespec *abstime);
PARAMETERS
delta Number of seconds and nanoseconds to add to the current sys-
tem time. The result is the time when a timed wait expires.
abstime Value representing the expiration time.
DESCRIPTION
The pthreadgetexpirationnp() 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
pthreadcondtimedwait(). This routine is a new primitive.
The struct timespec structure contains two fields, as follows:
- The tvsec field is an integer number of seconds.
- The tvnsec field is an integer number of nanoseconds.
RETURN VALUES
If the function fails, errno may be set to one of the following
values:
EINVAL The value specified by delta is invalid.
SEE ALSO
pthreadcondtimedwait(3-thr).
Page 1 Reliant UNIX 5.44 Printed 11/98