pthread_mutexattr_t

Contains pthread mutex attribute information.

Service:Synchronization

Structure

  #include <pthread.h>
  
  typedef struct
  {
     unsigned long   mattr_flags;
     int             mattr_kind;
     int             mattr_spare1;
     int             mattr_prioceiling;
     int             mattr_protocol;
     int             mattr_spares2[6];
     char            mattr_name[31+1];
  } pthread_mutexattr_t;
  

Fields

mattr_flags

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

mattr_kind

Specifies the kind of mutex. For a list of possible values, see Section 48.1.1, Mutex Types.

mattr_spare1

Reserved.

mattr_prioceiling

Specifies a priority ceiling for the mutex. Not supported.

mattr_protocol

Specifies a scheduling class for the mutex. For a list of possible values, see Section 48.1.3, Protocol Attribute Flags.

mattr_spares2

Reserved.

mattr_name

Specifies the name of the mutex.

Remarks

This structure must be initialized with the pthread_mutexattr_init function or the PTHREAD_MUTEXATTR_INITIALIZER macro before it can be used. You should use the pthread_mutexattr_set... functions to modify the default values.

NOTE:Although the header file declares a PTHREAD_PROCESS_SHARED flag and the structure declares mattr_priority, mattr_prioceiling, and mattr_protocol fields, these features are not available in the NetWare implementation.