Initialize the attribute object for creating condition variables
#include <pthread.h> int pthread_condattr_init( pthread_condattr_t* attr );
- A pointer to the pthread_condattr_t object that you want to initialize.
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:
- The condition variable can be accessed only by threads created within the same process as the thread that initialized the condition variable.
- Any thread that has access to the memory where the condition variable is allocated can access the condition variable.
- Insufficient memory to initialize the condition variable attribute object attr.
Last modified: 2014-06-24