PTHREAD_CONDATTR_CREATE(3P) SysV PTHREAD_CONDATTR_CREATE(3P)
NAME
pthread_condattr_create - Creates a condition variable attributes object
SYNOPSIS
#include <pthread.h>
int pthread_condattr_create (attr)
pthread_condattr_t *attr;
DESCRIPTION
The pthread_condattr_create function creates a condition variable
attributes object initialized with the default values for the defined
attributes and stores its ID in attr. When you create a new condition
variable (with the pthread_cond_init(3P) function), you use an attributes
object to specify the attributes to be used for that condition variable.
The attr argument specifies the address in which the ID for the new
condition variable attributes object will be stored.
No condition variable attributes are currently defined.
NOTES
This interface is based on draft 4 of the IEEE P1003.4a standard, and
will be changed to conform to the final version.
DIAGNOSTICS
Upon successful completion, the ID of the created condition variable
attributes object is stored in *attr, and a value of 0 (zero) is
returned. Otherwise, -1 is returned and errno is set to indicate the
error.
ERRORS
If the pthread_condattr_create function fails, errno may be set to one of
the following values:
[ENOMEM] There is not enough memory to create the condition attributes
object. This is not a temporary condition.
[EINVAL] The value specified by the attr argument is invalid.
SEE ALSO
pthread_cond_init(3P)