]> sourceware.org Git - newlib-cygwin.git/commitdiff
Add _Thread_queue_Queue::_owner for RTEMS
authorJeff Johnston <jjohnstn@redhat.com>
Tue, 3 May 2016 18:21:17 +0000 (14:21 -0400)
committerJeff Johnston <jjohnstn@redhat.com>
Tue, 3 May 2016 18:21:17 +0000 (14:21 -0400)
Add _Thread_queue_Queue::_owner which will be used for the upcomming
priority inheritance implementation and an O(m) independence-preserving
protocol (OMIP) implementation.

Signed-off-by: Sebastian Huber <sebastian.huber@embedded-brains.de>
newlib/libc/sys/rtems/include/sys/lock.h

index 002064fa524e40a7665613b2f846af79af5568b4..c261adf681e542af945969149f6533248eb06fd6 100644 (file)
@@ -45,11 +45,11 @@ struct _Ticket_lock_Control {
 struct _Thread_queue_Queue {
        struct _Ticket_lock_Control _Lock;
        struct _Thread_queue_Heads *_heads;
+       struct _Thread_Control *_owner;
 };
 
 struct _Mutex_Control {
        struct _Thread_queue_Queue _Queue;
-       struct _Thread_Control *_owner;
 };
 
 struct _Mutex_recursive_Control {
@@ -70,9 +70,9 @@ struct _Futex_Control {
        struct _Thread_queue_Queue _Queue;
 };
 
-#define _THREAD_QUEUE_INITIALIZER { { 0, 0 }, 0 }
+#define _THREAD_QUEUE_INITIALIZER { { 0, 0 }, 0, 0 }
 
-#define _MUTEX_INITIALIZER { _THREAD_QUEUE_INITIALIZER, 0 }
+#define _MUTEX_INITIALIZER { _THREAD_QUEUE_INITIALIZER }
 
 #define _MUTEX_RECURSIVE_INITIALIZER { _MUTEX_INITIALIZER, 0 }
 
This page took 0.03342 seconds and 5 git commands to generate.