diff options
author | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2016-05-30 15:00:32 +0200 |
---|---|---|
committer | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2016-05-30 16:16:24 +0200 |
commit | 024bffc665768504f594f23c9a9a6fdcca2bab38 (patch) | |
tree | 43ae7a17e99029b9666a3b79e38670251b6fe244 /cpukit/score/include/rtems/score/coremutex.h | |
parent | rtems: Remove superfluous includes (diff) | |
download | rtems-024bffc665768504f594f23c9a9a6fdcca2bab38.tar.bz2 |
score: Use owner of thread queue for CORE mutex
Diffstat (limited to 'cpukit/score/include/rtems/score/coremutex.h')
-rw-r--r-- | cpukit/score/include/rtems/score/coremutex.h | 16 |
1 files changed, 6 insertions, 10 deletions
diff --git a/cpukit/score/include/rtems/score/coremutex.h b/cpukit/score/include/rtems/score/coremutex.h index 2bde8b5ebd..26bb53920a 100644 --- a/cpukit/score/include/rtems/score/coremutex.h +++ b/cpukit/score/include/rtems/score/coremutex.h @@ -47,17 +47,13 @@ extern "C" { * The following defines the control block used to manage each mutex. */ typedef struct { - /** This field is the Waiting Queue used to manage the set of tasks - * which are blocked waiting to lock the mutex. - */ - Thread_queue_Control Wait_queue; - - /** This element points to the thread which is currently holding this mutex. - * The holder is the last thread to successfully lock the mutex and which - * has not unlocked it. If the thread is not locked, there is no holder. + /** + * @brief The thread queue of this mutex. + * + * The owner of the thread queue indicates the mutex owner. */ - Thread_Control *holder; -} CORE_mutex_Control; + Thread_queue_Control Wait_queue; +} CORE_mutex_Control; /** * @brief The recursive mutex control. |