From 12f93fbb13d37e6cc16149c4bbac1590e9b29a29 Mon Sep 17 00:00:00 2001 From: Sebastian Huber Date: Mon, 27 Jul 2015 13:19:17 +0200 Subject: score: Add thread queue for self-contained objects --- cpukit/score/include/rtems/score/threadqimpl.h | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) (limited to 'cpukit/score/include/rtems/score/threadqimpl.h') diff --git a/cpukit/score/include/rtems/score/threadqimpl.h b/cpukit/score/include/rtems/score/threadqimpl.h index 22118aba61..3828f415a6 100644 --- a/cpukit/score/include/rtems/score/threadqimpl.h +++ b/cpukit/score/include/rtems/score/threadqimpl.h @@ -33,6 +33,24 @@ extern "C" { */ /**@{*/ +/** + * @brief Thread queue with a layout compatible to struct _Thread_queue_Queue + * defined in Newlib . + */ +typedef struct { + Thread_queue_Queue Queue; + +#if !defined(RTEMS_SMP) + /* + * The struct _Thread_queue_Queue definition is independent of the RTEMS + * build configuration. Thus, the storage space for the SMP lock is always + * present. In SMP configurations, the SMP lock is contained in the + * Thread_queue_Queue. + */ + unsigned int reserved[2]; +#endif +} Thread_queue_Syslock_queue; + RTEMS_INLINE_ROUTINE void _Thread_queue_Queue_initialize( Thread_queue_Queue *queue ) -- cgit v1.2.3