[PATCH 2/3] Add _TICKET_LOCK_INITIALIZER to <sys/lock.h>

Corinna Vinschen vinschen@redhat.com
Thu Nov 17 10:07:00 GMT 2016


On Nov 16 14:51, Sebastian Huber wrote:
> Signed-off-by: Sebastian Huber <sebastian.huber@embedded-brains.de>
> ---
>  newlib/libc/sys/rtems/include/sys/lock.h | 4 +++-
>  1 file changed, 3 insertions(+), 1 deletion(-)
> 
> diff --git a/newlib/libc/sys/rtems/include/sys/lock.h b/newlib/libc/sys/rtems/include/sys/lock.h
> index f716a69..c0549db 100644
> --- a/newlib/libc/sys/rtems/include/sys/lock.h
> +++ b/newlib/libc/sys/rtems/include/sys/lock.h
> @@ -70,7 +70,9 @@ struct _Futex_Control {
>  	struct _Thread_queue_Queue _Queue;
>  };
>  
> -#define _THREAD_QUEUE_INITIALIZER { { 0, 0 }, 0, 0 }
> +#define _TICKET_LOCK_INITIALIZER { 0, 0 }
> +
> +#define _THREAD_QUEUE_INITIALIZER { _TICKET_LOCK_INITIALIZER, 0, 0 }

Why?  A bit of context in the git log would certainly not hurt.


Thanks,
Corinna

-- 
Corinna Vinschen
Cygwin Maintainer
Red Hat
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: not available
URL: <http://sourceware.org/pipermail/newlib/attachments/20161117/21363335/attachment.sig>


More information about the Newlib mailing list