Return Values
pthread_cond_init() returns zero after completing successfully. Any other returned value indicates that an error occurred. When any of the following conditions occur, the function fails and returns the corresponding value.
-
EINVAL
-
The value specified by cattr is invalid.
-
EBUSY
-
The condition variable is being used.
-
EAGAIN
-
The necessary resources are not available.
-
ENOMEM
-
There is not enough memory to initialize the condition variable.