pthread_rwlockattr_init

Initializes an attribute object for a reader-writer lock.

Library:LibC
Classification:POSIX
Service:Synchronization

Syntax

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

Parameters

attr

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

Return Values

Returns zero.

Remarks

The attribute object is initialized with default values. The lock is marked private to the process and is provide with a generic name of "pthread rwlock".

See Also