pthread_mutexattr_gettype

Returns the type attribute from the mutex attribute object.

Library:LibC
Classification:POSIX
Service:Synchronization

Syntax

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

Parameters

attr

(IN) Points to the mutex attribute object.

kind

(OUT) Points to the value for the type attribute. For a list of supported values, see Section 48.1.1, Mutex Types.

Return Values

If successful, returns 0. Otherwise, returns a nonzero error code.

Remarks

The pthread_mutexattr_destroy function destroys an unused mutex attribute object.

See Also