public inbox for newlib-cvs@sourceware.org help / color / mirror / Atom feed
From: Jeff Johnston <jjohnstn@sourceware.org> To: newlib-cvs@sourceware.org Subject: [newlib-cygwin] Add _Thread_queue_Queue::_owner for RTEMS Date: Tue, 03 May 2016 18:21:00 -0000 [thread overview] Message-ID: <20160503182154.45891.qmail@sourceware.org> (raw) 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 }
reply other threads:[~2016-05-03 18:21 UTC|newest] Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=20160503182154.45891.qmail@sourceware.org \ --to=jjohnstn@sourceware.org \ --cc=newlib-cvs@sourceware.org \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
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).