diff options
author | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2016-09-23 10:47:22 +0200 |
---|---|---|
committer | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2016-11-02 10:05:41 +0100 |
commit | 70c22d939513dd05171d99cb053dc8f71135ee25 (patch) | |
tree | e37818a449548482c10f89829ce6e2abfc1196c6 /cpukit/score/src/threadqops.c | |
parent | score: Add _Thread_Scheduler_add_wait_node() (diff) | |
download | rtems-70c22d939513dd05171d99cb053dc8f71135ee25.tar.bz2 |
score: Add _Thread_Scheduler_remove_wait_node()
Update #2556.
Diffstat (limited to 'cpukit/score/src/threadqops.c')
-rw-r--r-- | cpukit/score/src/threadqops.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/cpukit/score/src/threadqops.c b/cpukit/score/src/threadqops.c index 31b5875c4a..db22efdbd7 100644 --- a/cpukit/score/src/threadqops.c +++ b/cpukit/score/src/threadqops.c @@ -1222,11 +1222,13 @@ static void _Thread_queue_Priority_inherit_do_surrender_remove( ) { Scheduler_Node *scheduler_node; + Thread_Control *the_thread; scheduler_node = SCHEDULER_NODE_OF_WAIT_PRIORITY( priority_aggregation ); + the_thread = arg; + _Thread_Scheduler_remove_wait_node( the_thread, scheduler_node ); _Priority_Actions_add( priority_actions, priority_aggregation ); - _Chain_Extract_unprotected( &scheduler_node->Thread.Wait_node ); } #endif @@ -1313,7 +1315,7 @@ static void _Thread_queue_Priority_inherit_do_surrender( &queue_context->Priority.Actions, _Thread_queue_Priority_inherit_do_surrender_remove, _Thread_queue_Priority_inherit_do_surrender_change, - NULL + previous_owner ); fifo_node = _Chain_Previous( fifo_node ); |