pthread_condattr_create(3-thr) pthread_condattr_create(3-thr)
NAME
pthreadcondattrcreate - creates a condition variable attributes
object
SYNOPSIS
#include <pthread.h>
int pthreadcondattrcreate(pthreadcondattrt *attr);
PARAMETERS
attr Condition variable attributes object that is created.
DESCRIPTION
The pthreadcondattrcreate() routine creates a condition variable
attributes object that is used to specify the attributes of condition
variables when they are created. The condition variable attributes
object is initialized with the default value for all of the attributes
defined by a given implementation.
When a condition variable attributes object is used to create a condi-
tion variable, the values of the individual attributes determine the
characteristics of the new object. Attributes objects act like addi-
tional parameters to object creation. Changing individual attributes
does not affect objects that were previously created using the attri-
butes object.
RETURN VALUES
The created condition variable attributes object is returned to the
attr parameter.
If the function fails, errno may be set to one of the following
values:
EINVAL The value specified by attr is invalid.
ENOMEM Insufficient memory exists to create the condition variable
attributes object.
SEE ALSO
pthreadcondinit(3-thr), pthreadcondattrdelete(3-thr).
Page 1 Reliant UNIX 5.44 Printed 11/98