forked from Imagelibrary/rtems
score: Delete CORE_mutex_Control::blocked_count
This commit is contained in:
@@ -162,8 +162,6 @@ typedef struct {
|
|||||||
* nested. This must be zero (0) before the mutex is actually unlocked.
|
* nested. This must be zero (0) before the mutex is actually unlocked.
|
||||||
*/
|
*/
|
||||||
uint32_t nest_count;
|
uint32_t nest_count;
|
||||||
/** This is the number of waiting threads. */
|
|
||||||
uint32_t blocked_count;
|
|
||||||
/** This element points to the thread which is currently holding this mutex.
|
/** 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
|
* 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.
|
* has not unlocked it. If the thread is not locked, there is no holder.
|
||||||
|
|||||||
@@ -38,7 +38,6 @@ CORE_mutex_Status _CORE_mutex_Initialize(
|
|||||||
|
|
||||||
the_mutex->Attributes = *the_mutex_attributes;
|
the_mutex->Attributes = *the_mutex_attributes;
|
||||||
the_mutex->lock = initial_lock;
|
the_mutex->lock = initial_lock;
|
||||||
the_mutex->blocked_count = 0;
|
|
||||||
|
|
||||||
if ( initial_lock == CORE_MUTEX_LOCKED ) {
|
if ( initial_lock == CORE_MUTEX_LOCKED ) {
|
||||||
the_mutex->nest_count = 1;
|
the_mutex->nest_count = 1;
|
||||||
|
|||||||
@@ -60,7 +60,6 @@ void _CORE_mutex_Seize_interrupt_blocking(
|
|||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
the_mutex->blocked_count++;
|
|
||||||
_Thread_queue_Enqueue( &the_mutex->Wait_queue, executing, timeout );
|
_Thread_queue_Enqueue( &the_mutex->Wait_queue, executing, timeout );
|
||||||
|
|
||||||
_Thread_Enable_dispatch();
|
_Thread_Enable_dispatch();
|
||||||
|
|||||||
Reference in New Issue
Block a user