Initialize a mutex attribute object
#include <pthread.h> int pthread_mutexattr_init( pthread_mutexattr_t* attr );
BlackBerry 10.0.0
libc
Use the -l c option to qcc to link against this library. This library is usually included automatically.
The pthread_mutexattr_init() function initializes the attributes in the mutex attribute object attr to their default values. After initializing a mutex attribute object, you can use it to initialize one or more mutexes by calling pthread_mutex_init() .
The mutex attributes and their default values are:
After calling this function, you can use the pthread_mutexattr_* family of functions to make any changes to the attributes:
| Safety: | |
|---|---|
| Cancellation point | No |
| Interrupt handler | No |
| Signal handler | Yes |
| Thread | Yes |