pthread_condattr_init() returns zero after completing successfully. Any other return value indicates that an error occurred. When either of the following conditions occurs, the function fails and returns the corresponding value.
ENOMEM
Description:Insufficient memory allocated to initialize the thread attributes object.
EINVAL
Description:The value specified by cattr is invalid.