HELPLIB.HLB  —  DCE  DCE_THREADS, Application Routines, pthread_get_expiration_np
 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

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

     abstime              Value 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 not portable.

 The struct timespec structure contains two fields, as follows:

       o    The tv_sec field is an integer number of seconds.

       o    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
Close Help