![]() |
![]() |
![]() |
Initialize mutex attribute object
#include <pthread.h> int pthread_mutexattr_init( const pthread_mutexattr_t* attr );
libc
The pthread_mutexattr_init() function initializes the attributes in the mutex attribute object attr to their default values. After a mutex attribute object has been initialized it can be used to initialize one or more mutexes using the pthread_mutex_init() function.
The mutex attributes and their default values are:
Attribute | Default Value |
---|---|
protocol | PTHREAD_PRIO_INHERIT |
recursive | PTHREAD_RECURSIVE_DISABLE |
Safety: | |
---|---|
Cancellation point | No |
Interrupt handler | No |
Signal handler | Yes |
Thread | Yes |
pthread_mutexattr_destroy(), pthread_mutexattr_getprioceiling(), pthread_mutexattr_getprotocol(), pthread_mutexattr_getpshared(), pthread_mutexattr_getrecursive(), pthread_mutexattr_setprioceiling(), pthread_mutexattr_setprotocol(), pthread_mutexattr_setpshared(), pthread_mutexattr_setrecursive()
![]() |
![]() |
![]() |