pthread_mutexattr_init

Initializes a mutex attribute object to default values.

Library:LibC
Classification:POSIX
Service:Synchronization

Syntax

  #include <pthread.h>
   
  int   pthread_mutexattr_init  (
     pthread_mutexattr_t   *attr);
  

Parameters

attr

(IN) Points to the mutex attribute structure to initialize.

Return Values

Returns zero. No error conditions have been defined.

Remarks

The pthread_mutexattr_init function initializes all the fields in the structure to 0.

Although you can use the pthread mutex attribute set-and-get functions to manipulate the priority ceiling, shared, and protocol attributes of the mutex, these attributes are not supported and have no effect on NetWare.

Values for two NetWare specific attributes, hierarchy and info, must be manipulated by specifying the fields in the pthread_mutexattr_t structure.

See Also