summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--c/src/exec/score/include/rtems/score/coremutex.h1
-rw-r--r--c/src/exec/score/src/coremutex.c5
-rw-r--r--cpukit/score/include/rtems/score/coremutex.h1
-rw-r--r--cpukit/score/src/coremutex.c5
4 files changed, 8 insertions, 4 deletions
diff --git a/c/src/exec/score/include/rtems/score/coremutex.h b/c/src/exec/score/include/rtems/score/coremutex.h
index 32e4f40b5e..9f27ae0c1d 100644
--- a/c/src/exec/score/include/rtems/score/coremutex.h
+++ b/c/src/exec/score/include/rtems/score/coremutex.h
@@ -119,6 +119,7 @@ typedef struct {
CORE_mutex_Attributes Attributes;
unsigned32 lock;
unsigned32 nest_count;
+ unsigned32 blocked_count;
Thread_Control *holder;
Objects_Id holder_id;
} CORE_mutex_Control;
diff --git a/c/src/exec/score/src/coremutex.c b/c/src/exec/score/src/coremutex.c
index a5842efb91..ef2c21adc6 100644
--- a/c/src/exec/score/src/coremutex.c
+++ b/c/src/exec/score/src/coremutex.c
@@ -54,8 +54,9 @@ void _CORE_mutex_Initialize(
initial_lock == CORE_MUTEX_UNLOCKED );
*/
- the_mutex->Attributes = *the_mutex_attributes;
- the_mutex->lock = initial_lock;
+ the_mutex->Attributes = *the_mutex_attributes;
+ the_mutex->lock = initial_lock;
+ the_mutex->blocked_count = 0;
#if 0
if ( !the_mutex_attributes->only_owner_release &&
diff --git a/cpukit/score/include/rtems/score/coremutex.h b/cpukit/score/include/rtems/score/coremutex.h
index 32e4f40b5e..9f27ae0c1d 100644
--- a/cpukit/score/include/rtems/score/coremutex.h
+++ b/cpukit/score/include/rtems/score/coremutex.h
@@ -119,6 +119,7 @@ typedef struct {
CORE_mutex_Attributes Attributes;
unsigned32 lock;
unsigned32 nest_count;
+ unsigned32 blocked_count;
Thread_Control *holder;
Objects_Id holder_id;
} CORE_mutex_Control;
diff --git a/cpukit/score/src/coremutex.c b/cpukit/score/src/coremutex.c
index a5842efb91..ef2c21adc6 100644
--- a/cpukit/score/src/coremutex.c
+++ b/cpukit/score/src/coremutex.c
@@ -54,8 +54,9 @@ void _CORE_mutex_Initialize(
initial_lock == CORE_MUTEX_UNLOCKED );
*/
- the_mutex->Attributes = *the_mutex_attributes;
- the_mutex->lock = initial_lock;
+ the_mutex->Attributes = *the_mutex_attributes;
+ the_mutex->lock = initial_lock;
+ the_mutex->blocked_count = 0;
#if 0
if ( !the_mutex_attributes->only_owner_release &&