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


pthread_mutexattr_delete

Deletes a mutex attributes object.

Syntax

pthread_mutexattr_delete(
                         attr );
 


Argument Data Type Access

attr opaque pthread_ read mutexattr_t


C Binding

int
pthread_mutexattr_delete (
pthread_mutexattr_t *attr);

Arguments

attr
Attributes object deleted.

Description

This routine deletes a mutex attributes object. Call this routine when a mutex attributes object is no longer referenced by the pthread_mutexattr_create routine.

This routine gives permission to reclaim storage for the mutex attributes object. Mutexes that were created using this attributes object are not affected by the deletion of the mutex attributes object.

The results of calling this routine are unpredictable if the attributes object specified in the attr argument does not exist.

Return Values

Possible return values are as follows:
Return  Error         Description

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



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