public inbox for newlib-cvs@sourceware.org
help / color / mirror / Atom feed
* [newlib-cygwin] Add _Thread_queue_Queue::_owner for RTEMS
@ 2016-05-03 18:21 Jeff Johnston
  0 siblings, 0 replies; only message in thread
From: Jeff Johnston @ 2016-05-03 18:21 UTC (permalink / raw)
  To: newlib-cvs

https://sourceware.org/git/gitweb.cgi?p=newlib-cygwin.git;h=de2a5d6cd3f8936ab5779dee4a84c934a5fba68c

commit de2a5d6cd3f8936ab5779dee4a84c934a5fba68c
Author: Jeff Johnston <jjohnstn@redhat.com>
Date:   Tue May 3 14:21:17 2016 -0400

    Add _Thread_queue_Queue::_owner for RTEMS
    
    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>

Diff:
---
 newlib/libc/sys/rtems/include/sys/lock.h | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/newlib/libc/sys/rtems/include/sys/lock.h b/newlib/libc/sys/rtems/include/sys/lock.h
index 002064f..c261adf 100644
--- a/newlib/libc/sys/rtems/include/sys/lock.h
+++ b/newlib/libc/sys/rtems/include/sys/lock.h
@@ -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 }


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2016-05-03 18:21 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-05-03 18:21 [newlib-cygwin] Add _Thread_queue_Queue::_owner for RTEMS Jeff Johnston

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).