Added blocked_count field to allow for optimizations.

This commit is contained in:
Joel Sherrill
2000-07-03 15:49:58 +00:00
parent feb93ede27
commit 0147d5ee73
4 changed files with 8 additions and 4 deletions

View File

@@ -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;

View File

@@ -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 &&