Open System Services System Calls Reference Manual (G06.25+, H06.03+)

pthread_get_expiration_np(2) OSS System Calls Reference Manual
NAME
pthread_get_expiration_np
- Calculates an absolute expiration time
LIBRARY
G-series native OSS processes: /G/system/sysnn/zsptsrl
H-series OSS processes: /G/system/ZDLLnnn/zsptdll
SYNOPSIS
#include <spthread.h>
int pthread_get_expiration_np(
const struct timespec *delta,
struct timespec *abstime );
PARAMETERS
delta species the number of seconds and nanoseconds to add to the current system
time to determine an expiration time.
abstime receives the calculated absolute expiration time. The resulting abstime value is
in Universal Coordinated Time (UTC).
DESCRIPTION
This function adds a specied interval to the current absolute system time and returns a new
absolute time, which is used as the expiration time in a call to the pthread_cond_timedwait()
function.
The timespec structure contains the following two elds:
tv_sec is an integral number of seconds.
tv_nsec is an integral number of nanoseconds.
RETURN VALUES
On successful completion, this function returns a 0 (zero). If an error condition occurs, this func-
tion returns -1 and sets errno to indicate the type of error.
ERRORS
The following error conditions can occur:
[EINVAL] The value specied by the delta parameter is invalid.
RELATED INFORMATION
Functions: pthread_cond_timedwait(2).
STANDARDS CONFORMANCE
This function is an extension to the XPG4 Version 2 specication and to the following industry
standards:
IEEE Std 1003.1c-1995, POSIX System Application Program Interface
562 Hewlett-Packard Company 527186-003