forked from Imagelibrary/rtems
score: Fix thread queue race condition
On uni-processor configurations the change of the thread blocking state in _Thread_queue_Requeue_priority() did no harm and was simply useless. However on SMP configurations this resulted in invalid state changes leading to a wrong resource ownership.
This commit is contained in:
@@ -92,7 +92,6 @@ static void _Thread_queue_Requeue_priority(
|
||||
{
|
||||
Thread_queue_Control *tq = context;
|
||||
|
||||
_Thread_queue_Enter_critical_section( tq );
|
||||
_RBTree_Extract( &tq->Queues.Priority, &the_thread->RBNode );
|
||||
_RBTree_Insert(
|
||||
&tq->Queues.Priority,
|
||||
|
||||
Reference in New Issue
Block a user