pthread_condattr_init(3P)

pthread_condattr_init, pthread_condattr_destroy - initialize/destroy a condition variable attribute object

Showing IRIX 6.5.30 (default release). Unchanged since IRIX 6.5.

NAME
     pthread_condattr_init, pthread_condattr_destroy - initialize/destroy a
     condition variable attribute object

C SYNOPSIS
     #include <pthread.h>

     int pthread_condattr_init(pthread_condattr_t *attr);
     int pthread_condattr_destroy(pthread_condattr_t *attr);

DESCRIPTION
     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.

DIAGNOSTICS
     These routines return zero.

SEE ALSO
     pthread_cond_init(3P), pthread_condattr_setpshared(3P).