diff options
author | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2015-06-28 22:06:36 +0200 |
---|---|---|
committer | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2015-07-30 09:11:18 +0200 |
commit | 214d8edd1817adc96d529c9f9fe5646f9506d682 (patch) | |
tree | eb31556faaa5d34b9457445055f93798ed09eba1 /cpukit/score/include/rtems/score/statesimpl.h | |
parent | score: Add thread queue for self-contained objects (diff) | |
download | rtems-214d8edd1817adc96d529c9f9fe5646f9506d682.tar.bz2 |
score: Add self-contained mutex implementation
This mutex implementation uses a thread priority queue with a simple
priority inheritance mechanism (similar to the object based mutexes).
The storage space must be supplied by the user (16 bytes on 32-bit
targets).
Diffstat (limited to 'cpukit/score/include/rtems/score/statesimpl.h')
-rw-r--r-- | cpukit/score/include/rtems/score/statesimpl.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/cpukit/score/include/rtems/score/statesimpl.h b/cpukit/score/include/rtems/score/statesimpl.h index d1c402e643..4ad8786387 100644 --- a/cpukit/score/include/rtems/score/statesimpl.h +++ b/cpukit/score/include/rtems/score/statesimpl.h @@ -86,6 +86,8 @@ extern "C" { #define STATES_RESTARTING 0x800000 /** This macro corresponds to a task waiting for a join. */ #define STATES_WAITING_FOR_JOIN 0x1000000 +/** This macro corresponds to a task waiting for a <sys/lock.h> mutex. */ +#define STATES_WAITING_FOR_SYS_LOCK_MUTEX 0x2000000 /** This macro corresponds to a task which is in an interruptible * blocking state. @@ -103,6 +105,7 @@ extern "C" { STATES_WAITING_FOR_SIGNAL | \ STATES_WAITING_FOR_BARRIER | \ STATES_WAITING_FOR_BSD_WAKEUP | \ + STATES_WAITING_FOR_SYS_LOCK_MUTEX | \ STATES_WAITING_FOR_RWLOCK ) /** This macro corresponds to a task waiting which is blocked. */ |