pthread_rwlockattr_getpshared

Returns the process-shared attribute from the read-writer attribute object

Library:LibC
Classification:POSIX
Service:Synchronization

Syntax

  #include <pthread.h>
   
  int pthread_rwlockattr_getpshared (
     const pthread_rwlockattr_t   *attr,
     int                          *pshared);
  

Parameters

attr

(IN) Points to the reader-writer attribute object.

pshared

(OUT) Points to the value for the process-shared attribute. For a list of supported values, see Section 48.1.2, Process Shared Flags.

Return Values

Returns zero; no error conditions have been defined.

Remarks

The pthread_rwlockattr_destroy function destroys an unused reader-writer attribute object.

See Also