[RTEMS Project] #2371: Add support for POSIX robust mutexes
RTEMS trac
trac at rtems.org
Tue Jul 14 21:55:36 UTC 2015
#2371: Add support for POSIX robust mutexes
---------------------------+----------------------------------------------
Reporter: joel.sherrill | Owner:
Type: enhancement | Status: new
Priority: normal | Milestone: 5.0
Component: cpukit | Version: 4.11
Severity: normal | Keywords: mutex, posix, robust, consistent
---------------------------+----------------------------------------------
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.
--
Ticket URL: <http://devel.rtems.org/ticket/2371>
RTEMS Project <http://www.rtems.org/>
RTEMS Project
More information about the bugs
mailing list