The pthread_cond_init function

Name

pthread_cond_init -- 

Synopsis

#include <pthread.h>

int pthread_cond_init (pthread_cond_t *cond , pthread_condattr_t *attr );

Description

The pthread_cond_init function initializes the given condition variable.

Returns

The pthread_cond_init function returns zero if the call is successful, otherwise it sets errno to EINVAL and returns -1.

Implementation Notes

The value of attr must be null.