pthread_rwlockattr_t

Contains pthread attribute information for a reader-writer lock.

Service:Synchronization

Structure

  #include <pthread.h>
  
  typedef struct
  {
     unsigned long   rwattr_flags;
     int             rwattr_spare1;
     int             rwattr_priority;
     int             rwattr_prioceiling;
     int             rwattr_protocol;
     int             rwattr_spares2[6];
     char            rwattr_name[31+1];
  } pthread_rwlockattr_t;
  

Fields

rwattr_flags

Specifies whether the reader-writer lock can be shared across processes. NetWare does not currently support sharing. The default value is therefore PTHREAD_PROCESS_PRIVATE.

rwattr_spare1

Reserved.

rwattr_priority

Specifies a priority for the reader-writer lock. Not supported.

rwattr_prioceiling

Specifies a priority ceiling for the reader-writer lock. Not supported.

rwattr_protocol

Specifies a scheduling class for the reader-writer lock. Not supported.

rwattr_spares2

Reserved.

rwattr_name

Specifies the name of the reader-writer lock. The default name is "pthread rwlock".

Remarks

This structure must be initialized with the pthread_rwlockattr_init function or the PTHREAD_RWLOCK_INITIALIZER before it can be used.

NOTE:Although the header file declares a PTHREAD_PROCESS_SHARED flag and the structure declares rwattr_priority, rwattr_prioceiling, and rwattr_protocol fields, these features are not available in the NetWare implementation.