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 the following attributes defined:
For more information about these attributes, see pthread_condattr_getpshared() and pthread_condattr_setpshared().
Safety: | |
---|---|
Cancellation point | No |
Interrupt handler | No |
Signal handler | Yes |
Thread | Yes |
pthread_condattr_destroy(), pthread_cond_init()