pthread_mutexattr_getprotocol

Returns the protocol attribute from the mutex attribute object.

Library:LibC
Classification:POSIX
Service:Synchronization

Syntax

  #include <pthread.h>
   
  int pthread_mutexattr_getprotocol (
     const pthread_mutexattr_t   *attr,
     int                         *protocol);
  

Parameters

attr

(IN) Points to the mutex attribute object.

protocol

(OUT) Points to the value for the protocol attribute. For a list of supported values, see Section 48.1.3, Protocol Attribute Flags.

Return Values

Returns zero; no error conditions have been defined.

Remarks

The protocol attribute defines the protocol to be followed in utilizing mutexes. On NetWare, this attribute can be set, but it currently has no effect on the behavior of the mutex.

See Also