[Return to Bookshelf] [Contents] [Previous Section] [Next Section] [Index] [Help]


pthread_condattr_destroy

Destroys a condition variable attributes object.

Syntax

pthread_condattr_destroy(
                         attr );
 


Argument Data Type Access

attr opaque pthread_ write condattr_t


C Binding

#include 

int pthread_condattr_destroy ( pthread_condattr_t *attr);

Arguments

attr
Condition variable attributes object to be destroyed.

Description

This routine destroys a condition variable attributes object (the object becomes uninitialized).

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

After calling this routine, the results of using attr in a call to any routine (other than pthread_condattr_init) are unpredictable.

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.


Associated Routines

   pthread_condattr_init



[Return to Bookshelf] [Contents] [Previous Section] [Next Section] [Index] [Help]