pthread_condattr_init

Initializes an attribute object for a condition variable.

Library:LibC
Classification:POSIX
Service:Synchronization

Syntax

  #include <pthread.h>
   
  int  pthread_condattr_init  (
     pthread_condattr_t   *attr);
  

Parameters

attr

(IN) Points to the attribute structure to initialize.

Return Values

Returns zero. No error conditions have been defined.

Remarks

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

See Also