POSIX Robust Mutexes option group (placeholder).
More...
|
| int | pthread_mutex_consistent (pthread_mutex_t *mutex) |
| | Mark a robust mutex as consistent after recovering from owner death.
|
| |
| int | pthread_mutexattr_getrobust (const pthread_mutexattr_t *ZRESTRICT attr, int *ZRESTRICT robust) |
| | Get the robustness attribute of a mutex attributes object.
|
| |
| int | pthread_mutexattr_setrobust (pthread_mutexattr_t *attr, int robust) |
| | Set the robustness attribute of a mutex attributes object.
|
| |
POSIX Robust Mutexes option group (placeholder).
- See also
- https://pubs.opengroup.org/onlinepubs/9699919799/xrat/V4_subprofiles.html
-
https://pubs.opengroup.org/onlinepubs/9699919799/xrat/V4_subprofiles.html
◆ PTHREAD_MUTEX_ROBUST
| #define PTHREAD_MUTEX_ROBUST 4 |
Robust mutex; the state is recoverable if the owner dies.
Definition at line 66 of file pthread.h.
◆ PTHREAD_MUTEX_STALLED
| #define PTHREAD_MUTEX_STALLED 1 |
Mutex is not recovered on owner death (default, for non-robust mutexes).
Definition at line 68 of file pthread.h.
◆ pthread_mutex_consistent()
| int pthread_mutex_consistent |
( |
pthread_mutex_t * |
mutex | ) |
|
◆ pthread_mutexattr_getrobust()
| int pthread_mutexattr_getrobust |
( |
const pthread_mutexattr_t *ZRESTRICT |
attr, |
|
|
int *ZRESTRICT |
robust |
|
) |
| |
◆ pthread_mutexattr_setrobust()
| int pthread_mutexattr_setrobust |
( |
pthread_mutexattr_t * |
attr, |
|
|
int |
robust |
|
) |
| |