From 2581a563f9182dc2debdba97f33feee6d797e53a Mon Sep 17 00:00:00 2001 From: Sebastian Huber Date: Fri, 20 May 2016 21:39:56 +0200 Subject: score: Add semaphore variants --- cpukit/rtems/include/rtems/rtems/sem.h | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) (limited to 'cpukit/rtems/include/rtems/rtems/sem.h') diff --git a/cpukit/rtems/include/rtems/rtems/sem.h b/cpukit/rtems/include/rtems/rtems/sem.h index 2c99f57deb..fe74f44dfa 100644 --- a/cpukit/rtems/include/rtems/rtems/sem.h +++ b/cpukit/rtems/include/rtems/rtems/sem.h @@ -96,6 +96,24 @@ typedef struct { #endif } Core_control; + /** + * @brief The semaphore variant. + * + * @see Semaphore_Variant. + */ + unsigned int variant : 3; + + /** + * @brief The semaphore thread queue discipline. + * + * @see Semaphore_Discipline. + */ + unsigned int discipline : 1; + +#if defined(RTEMS_MULTIPROCESSING) + unsigned int is_global : 1; +#endif + /** * This is the Classic API attribute provided to the create directive. * It is translated into behavioral attributes on the SuperCore Semaphore -- cgit v1.2.3