From de59c065c57cb8526662ee6da28a57ad16fdde66 Mon Sep 17 00:00:00 2001 From: Sebastian Huber Date: Wed, 27 Sep 2017 15:08:33 +0200 Subject: posix: Implement self-contained POSIX mutex POSIX mutexes are now available in all configurations and no longer depend on --enable-posix. Update #2514. Update #3112. --- cpukit/score/src/mutex.c | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) (limited to 'cpukit/score/src') diff --git a/cpukit/score/src/mutex.c b/cpukit/score/src/mutex.c index 5916119f02..2a116c4602 100644 --- a/cpukit/score/src/mutex.c +++ b/cpukit/score/src/mutex.c @@ -20,16 +20,12 @@ #include #include +#include #include -#include #include #define MUTEX_TQ_OPERATIONS &_Thread_queue_Operations_priority_inherit -typedef struct { - Thread_queue_Syslock_queue Queue; -} Mutex_Control; - RTEMS_STATIC_ASSERT( offsetof( Mutex_Control, Queue ) == offsetof( struct _Mutex_Control, _Queue ), @@ -41,11 +37,6 @@ RTEMS_STATIC_ASSERT( MUTEX_CONTROL_SIZE ); -typedef struct { - Mutex_Control Mutex; - unsigned int nest_level; -} Mutex_recursive_Control; - RTEMS_STATIC_ASSERT( offsetof( Mutex_recursive_Control, Mutex ) == offsetof( struct _Mutex_recursive_Control, _Mutex ), -- cgit v1.2.3