pthread_rwlockattr_destroy

Destroys an attribute object for a reader-writer lock.

Library:LibC
Classification:POSIX
Service:Synchronization

Syntax

  #include <pthread.h>
   
  int  pthread_rwlockattr_destroy  (
     pthread_rwlockattr_t   *attr);
  

Parameters

attr

(IN) Points to an attribute object for reader-writer locks.

Return Values

Returns zero.

Remarks

The attribute object is destroyed and all resources released. If the attribute object has been used to acquire locks, the destruction does not affect any initialized reader-writer locks.

See Also