This is the mail archive of the
newlib@sourceware.org
mailing list for the newlib project.
Re: [PATCH 2/2] RTEMS: Add _Thread_queue_Queue::_owner
- From: Jeff Johnston <jjohnstn at redhat dot com>
- To: Sebastian Huber <sebastian dot huber at embedded-brains dot de>
- Cc: newlib at sourceware dot org, devel at rtems dot org
- Date: Tue, 3 May 2016 14:22:15 -0400 (EDT)
- Subject: Re: [PATCH 2/2] RTEMS: Add _Thread_queue_Queue::_owner
- Authentication-results: sourceware.org; auth=none
- References: <1462193797-16193-1-git-send-email-sebastian dot huber at embedded-brains dot de> <1462193797-16193-2-git-send-email-sebastian dot huber at embedded-brains dot de>
Patch applied.
-- Jeff J.
----- Original Message -----
> 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 | 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 }
>
> --
> 1.8.4.5
>
>