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/threadinitialize.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/threadinitialize.c')
-rw-r--r-- | cpukit/score/src/threadinitialize.c | 13 |
1 files changed, 2 insertions, 11 deletions
diff --git a/cpukit/score/src/threadinitialize.c b/cpukit/score/src/threadinitialize.c index 27c3f06af7..9f5df257aa 100644 --- a/cpukit/score/src/threadinitialize.c +++ b/cpukit/score/src/threadinitialize.c @@ -29,15 +29,6 @@ #include <rtems/score/cpusetimpl.h> #include <rtems/config.h> -void _Thread_Priority_change_do_nothing( - Thread_Control *the_thread, - Priority_Control new_priority, - void *context -) -{ - /* Do nothing */ -} - bool _Thread_Initialize( Objects_Information *information, Thread_Control *the_thread, @@ -208,10 +199,10 @@ bool _Thread_Initialize( the_thread->current_state = STATES_DORMANT; the_thread->Wait.queue = NULL; + the_thread->Wait.operations = &_Thread_queue_Operations_default; the_thread->resource_count = 0; the_thread->real_priority = priority; - the_thread->Priority.generation = 0; - the_thread->Priority.change_handler = _Thread_Priority_change_do_nothing; + the_thread->priority_generation = 0; the_thread->Start.initial_priority = priority; _Thread_Wait_flags_set( the_thread, THREAD_WAIT_FLAGS_INITIAL ); |