Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ pthread_get_expiration_np(3) — HP-UX 10.20

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

pthread_cond_timedwait(3)

pthread_get_expiration_np(3)

NAME

pthread_get_expiration_np - Obtains a value representing a desired expiration time

SYNOPSIS

#include <pthread.h> int pthread_get_expiration_np( struct timespec *delta, struct timespec *abstime);

PARAMETERS

deltaNumber of seconds and nanoseconds to add to the current system time. The result is the time when a timed wait expires. 

abstimeValue representing the expiration time. 

DESCRIPTION

The pthread_get_expiration_np() 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(). This routine is a new primitive. The struct timespec structure contains two fields, as follows:

•The tv_sec field is an integer number of seconds. 

•The tv_nsec field is an integer number of nanoseconds. 

RETURN VALUES

If the function fails, errno may be set to one of the following values:

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

RELATED INFORMATION

Functions:  pthread_cond_timedwait(3). 

Hewlett-Packard Company  —  OSF DCE 1.1/HP DCE 1.5

Typewritten Software • bear@typewritten.org • Edmonds, WA 98026