VMS Help
POSIX Threads, TIS routines, tis_get_expiration
*Conan The Librarian (sorry for the slow response - running on an old VAX)
|
|
Obtains a value representing a desired expiration time.
#include <tis.h>
int
tis_get_expiration (
const struct timespec *delta,
struct timespec *abstime);
delta
Number of seconds and nanoseconds to add to the current system
time. (The result is the time in the future.) This result will be
placed in abstime.
abstime
Value representing the absolute expiration time. The absolute
expiration time is obtained by adding delta to the current system
time. The resulting abstime is in Universal Coordinated Time
(UTC).
If threads are not present, this routine has no effect.
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 tis_cond_
timedwait().
The timespec structure contains the following two fields:
o tv_sec is an integral number of seconds.
o tv_nsec is an integral number of nanoseconds.
If an error condition occurs, this routine returns an integer
value indicating the type of error. Possible return values are as
follows:
Return Description
0 Successful completion.
[EINVAL] The value specified by delta is invalid.
tis_cond_timedwait()
[legal]
[privacy]
[GNU]
[policy]
[netiquette]
[sponsors]
[FAQ]
Polarhome, production since 1999.
Member of Polarhome portal.