diff options
author | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2015-06-24 11:05:39 +0200 |
---|---|---|
committer | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2015-07-23 08:00:19 +0200 |
commit | e2735012331e7347a779888365daa3605c71cd5e (patch) | |
tree | a573ae6f29fdb58205e0991d7c3b201a45163d93 /cpukit/score/src/threadq.c | |
parent | bsps/arm: Update due to API changes (diff) | |
download | rtems-e2735012331e7347a779888365daa3605c71cd5e.tar.bz2 |
score: Introduce Thread_queue_Queue
Separate the thread queue heads and lock from the operations. This
enables the support for light weight objects which only support one
queuing discipline.
Diffstat (limited to 'cpukit/score/src/threadq.c')
-rw-r--r-- | cpukit/score/src/threadq.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/cpukit/score/src/threadq.c b/cpukit/score/src/threadq.c index 3b1b47bf3a..fc5060119b 100644 --- a/cpukit/score/src/threadq.c +++ b/cpukit/score/src/threadq.c @@ -50,7 +50,7 @@ void _Thread_queue_Initialize( { const Thread_queue_Operations *operations; - _ISR_lock_Initialize( &the_thread_queue->Lock, "Thread Queue" ); + _ISR_lock_Initialize( &the_thread_queue->Queue.Lock, "Thread Queue" ); if ( the_discipline == THREAD_QUEUE_DISCIPLINE_PRIORITY ) { operations = &_Thread_queue_Operations_priority; @@ -60,5 +60,5 @@ void _Thread_queue_Initialize( } the_thread_queue->operations = operations; - ( *operations->initialize )( the_thread_queue ); + ( *operations->initialize )( &the_thread_queue->Queue ); } |