Initialize the attribute object for creating condition variables
#include <pthread.h> int pthread_condattr_init( pthread_condattr_t* attr );
libc
Use the -l c option to qcc to link against this library. This library is usually included automatically.
The pthread_condattr_init() function initializes the attributes in the condition variable attribute object attr to default values. Pass attr to pthread_cond_init() to define the attributes of the condition variable.
Condition variables have at least a process-shared attribute, whose value is one of the following:
The default is PTHREAD_PROCESS_PRIVATE. For more information about this attribute, see pthread_condattr_getpshared() and pthread_condattr_setpshared().
Safety: | |
---|---|
Cancellation point | No |
Interrupt handler | No |
Signal handler | Yes |
Thread | Yes |