Opened on 07/14/15 at 21:55:36
Last modified on 08/13/17 at 23:47:44
#2371 new enhancement
Add support for POSIX robust mutexes
Reported by: | Joel Sherrill | Owned by: | |
---|---|---|---|
Priority: | normal | Milestone: | Indefinite |
Component: | score | Version: | |
Severity: | normal | Keywords: | mutex, posix, robust, consistent |
Cc: | Blocked By: | ||
Blocking: |
Description
In 2006, the POSIX standard added a robust mode for mutexes. When a thread that owns a mutex is deleted, the mutex with the robust attribute is marked as being in an inconsistent state.
It is covered by the following APIs:
- pthread_mutexattr_setrobust
- pthread_mutexattr_getrobust
- pthread_mutex_consistent
This statement from the pthread.h definition page gives a summary:
The PTHREAD_MUTEX_ROBUST and PTHREAD_MUTEX_STALLED symbols and the pthread_mutex_consistent(), pthread_mutexattr_getrobust(), and pthread_mutexattr_setrobust() functions are added from The Open Group Technical Standard, 2006, Extended API Set Part 2.
Pages to reference:
- http://pubs.opengroup.org/onlinepubs/9699919799/basedefs/pthread.h.html
- http://pubs.opengroup.org/onlinepubs/9699919799/functions/pthread_mutex_consistent.html
- http://pubs.opengroup.org/onlinepubs/9699919799/functions/pthread_mutexattr_getrobust.html
As a minimum this capability should be available in the POSIX API. Although, it is undefined how it may be supported in the Classic API, it should be supported in the Classic API as well.
Change History (1)
comment:1 Changed on 08/13/17 at 23:47:44 by Chris Johns
Milestone: | 5.0 → Indefinite |
---|---|
Version: | 4.11 |