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


pthread_condattr_delete

Deletes a condition variable attributes object.

Syntax

pthread_condattr_delete(
                        attr );
 


Argument Data Type Access

attr opaque pthread_ read condattr_t


C Binding

int
pthread_condattr_delete (
pthread_condattr_t *attr);

Arguments

attr
Condition variable attributes object deleted.

Description

This routine deletes a condition variable attributes object. Call this routine when a condition variable attributes object created by pthread_condattr_create will no longer be referenced.

This routine gives permission to reclaim storage for the condition variable attributes object. Condition variables that are created using this attributes object are not affected by the deletion of the condition variable attributes object.

The results of calling this routine are unpredictable if the handle specified by the attr argument refers to an attributes object that does not exist.

Return Values

Possible return values are as follows:
Return  Error         Description

0 Successful completion. -1 [EINVAL] The attributes object specified by attr is invalid.



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