summaryrefslogtreecommitdiffstats
path: root/cpukit/score/include/rtems/score/coresemimpl.h
diff options
context:
space:
mode:
authorSebastian Huber <sebastian.huber@embedded-brains.de>2015-06-24 11:05:39 +0200
committerSebastian Huber <sebastian.huber@embedded-brains.de>2015-07-23 08:00:19 +0200
commite2735012331e7347a779888365daa3605c71cd5e (patch)
treea573ae6f29fdb58205e0991d7c3b201a45163d93 /cpukit/score/include/rtems/score/coresemimpl.h
parentbsps/arm: Update due to API changes (diff)
downloadrtems-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/include/rtems/score/coresemimpl.h')
-rw-r--r--cpukit/score/include/rtems/score/coresemimpl.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/cpukit/score/include/rtems/score/coresemimpl.h b/cpukit/score/include/rtems/score/coresemimpl.h
index da57ad1dd4..a6a30bcc15 100644
--- a/cpukit/score/include/rtems/score/coresemimpl.h
+++ b/cpukit/score/include/rtems/score/coresemimpl.h
@@ -140,7 +140,8 @@ RTEMS_INLINE_ROUTINE CORE_semaphore_Status _CORE_semaphore_Surrender(
#endif
_Thread_queue_Extract_critical(
- &the_semaphore->Wait_queue,
+ &the_semaphore->Wait_queue.Queue,
+ the_semaphore->Wait_queue.operations,
the_thread,
lock_context
);
@@ -263,7 +264,8 @@ RTEMS_INLINE_ROUTINE void _CORE_semaphore_Seize(
executing->Wait.id = id;
_Thread_queue_Enqueue_critical(
- &the_semaphore->Wait_queue,
+ &the_semaphore->Wait_queue.Queue,
+ the_semaphore->Wait_queue.operations,
executing,
STATES_WAITING_FOR_SEMAPHORE,
timeout,