#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:

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 Aug 13, 2017 at 11:47:44 PM by Chris Johns

Milestone: 5.0Indefinite
Version: 4.11
Note: See TracTickets for help on using tickets.