diff options
author | Jeff Johnston <jjohnstn@redhat.com> | 2016-05-03 14:21:17 -0400 |
---|---|---|
committer | Jeff Johnston <jjohnstn@redhat.com> | 2016-05-03 14:21:17 -0400 |
commit | de2a5d6cd3f8936ab5779dee4a84c934a5fba68c (patch) | |
tree | bacf1896b0a34b9f28698d7f70a2986238dd169d | |
parent | 4f81837d78d8de6040bfb7312ba7e2d7b336a55f (diff) | |
download | newlib-de2a5d6cd3f8936ab5779dee4a84c934a5fba68c.zip newlib-de2a5d6cd3f8936ab5779dee4a84c934a5fba68c.tar.gz newlib-de2a5d6cd3f8936ab5779dee4a84c934a5fba68c.tar.bz2 |
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>
-rw-r--r-- | newlib/libc/sys/rtems/include/sys/lock.h | 6 |
1 files 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 } |