diff options
author | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2015-04-21 10:17:13 +0200 |
---|---|---|
committer | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2015-05-19 12:00:45 +0200 |
commit | 568af83542eec9343c24d417ed6a219d22046233 (patch) | |
tree | f66fde552c81c31930df66cb8a00444efeb0f30a /cpukit/score/src/threadchangepriority.c | |
parent | score: Add Thread_queue_Control::Lock (diff) | |
download | rtems-568af83542eec9343c24d417ed6a219d22046233.tar.bz2 |
score: Add Thread_queue_Operations
Replace the Thread_Priority_control with more general
Thread_queue_Operations which will be used for generic priority change,
timeout, signal and wait queue operations in the future.
Update #2273.
Diffstat (limited to 'cpukit/score/src/threadchangepriority.c')
-rw-r--r-- | cpukit/score/src/threadchangepriority.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/cpukit/score/src/threadchangepriority.c b/cpukit/score/src/threadchangepriority.c index a011a8f5e5..3223544fe3 100644 --- a/cpukit/score/src/threadchangepriority.c +++ b/cpukit/score/src/threadchangepriority.c @@ -41,21 +41,21 @@ void _Thread_Change_priority( if ( the_thread->current_priority != new_priority ) { uint32_t my_generation; - my_generation = the_thread->Priority.generation + 1; + my_generation = the_thread->priority_generation + 1; the_thread->current_priority = new_priority; - the_thread->Priority.generation = my_generation; + the_thread->priority_generation = my_generation; - (*the_thread->Priority.change_handler)( + ( *the_thread->Wait.operations->priority_change )( the_thread, new_priority, - the_thread->Priority.change_handler_context + the_thread->Wait.queue ); _Thread_Lock_release( lock, &lock_context ); _Scheduler_Acquire( the_thread, &lock_context ); - if ( the_thread->Priority.generation == my_generation ) { + if ( the_thread->priority_generation == my_generation ) { if ( _States_Is_ready( the_thread->current_state ) ) { _Scheduler_Change_priority( the_thread, |