HELPLIB.HLB  —  POSIX Threads, PTHREAD routines, pthread_condattr_destroy
    Destroys a condition variable attributes object.

1  –  C Binding

    #include <pthread.h>

    int
    pthread_condattr_destroy (
             pthread_condattr_t   *attr);

2  –  Arguments

 attr

    Condition variable attributes object to be destroyed.

3  –  Description

    This routine destroys the specified condition variable attributes
    object. Call this routine when a condition variable attributes
    object will no longer be referenced.

    Condition variables that were created using this attributes
    object are not affected by the destruction of the condition
    variable attributes object.

    The results of calling this routine are unpredictable if the
    value specified by the attr argument refers to a condition
    variable attributes object that does not exist.

4  –  Return Values

    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 attributes object specified by attr is invalid.

5  –  Associated Routines

       pthread_condattr_init()
Close Help