Obtains a value representing a desired expiration time.
Threads Library (libpthreads.a)
The pthread_get_expiration_np subroutine adds the interval delta to the current absolute system time and returns a new absolute time. This new absolute time can be used as the expiration time in a call to the pthread_cond_timedwait subroutine.
This subroutine is not POSIX compliant and is provided only for compatibility with DCE threads. It should not be used when writing new applications.
Item | Description |
---|---|
delta | Points to the time structure specifying the interval. |
abstime | Points to where the new absolute time will be stored. |
Upon successful completion, the new absolute time is returned via the abstime parameter, and 0 is returned. Otherwise, an error code is returned.
The pthread_get_expiration_np subroutine is unsuccessful if the following is true:
Item | Description |
---|---|
EINVAL | The delta or abstime parameters are not valid. |