[Return to Bookshelf] [Contents] [Previous Section] [Next Section] [Index] [Help]


pthread_get_expiration_np

Obtains a value representing a desired expiration time.

Syntax

pthread_get_expiration_np(
                          delta,
                          abstime );
 


Argument Data Type Access

delta struct timespec read abstime struct timespec write


C Binding

extern int
pthread_get_expiration_np (
struct timespec *delta,
struct timespec *abstime);

Arguments

delta
Number of seconds and nanoseconds to add to the current system time. The result is the time that a timed wait expires.
abstime
Value representing the expiration time.

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.

The struct timespec structure contains the following two fields:

Return Values

If an error condition occurs, this routine returns -1 and sets errno to the corresponding error value. Possible return values are as follows:
Return  Error         Description

0 Successful completion. -1 [EINVAL] The value specified by delta is invalid.



[Return to Bookshelf] [Contents] [Previous Section] [Next Section] [Index] [Help]