pthread_condattr_init(3P) pthread_condattr_init(3P)
pthread_condattr_init, pthread_condattr_destroy - initialize/destroy a
condition variable attribute object
#include <pthread.h>
int pthread_condattr_init(pthread_condattr_t *attr);
int pthread_condattr_destroy(pthread_condattr_t *attr);
The function pthread_condattr_init() initializes the condition variable
attribute object referenced by attr to the default attribute values. The
default sharing value is PTHREAD_PROCESS_PRIVATE.
Once a condition variable attribute object is used to initialize one or
more mutexes, any function that affects the attribute object will not
affect the previously initialized mutexes. pthread_condattr_destroy()
uninitializes the condition variable attribute structure referenced by
attr. This may include freeing dynamically allocated memory.
These routines return zero.
pthread_cond_init(3P), pthread_condattr_setpshared(3P).
PPPPaaaaggggeeee 1111 [ Back ]
|