diff options
author | Jeff Johnston <jjohnstn@redhat.com> | 2016-05-03 14:17:47 -0400 |
---|---|---|
committer | Jeff Johnston <jjohnstn@redhat.com> | 2016-05-03 14:18:54 -0400 |
commit | 4f81837d78d8de6040bfb7312ba7e2d7b336a55f (patch) | |
tree | b24fa3d62c614abbfe9796efbee24f48b1c2b67a /newlib | |
parent | f310e8d951acfdbcacc56501e39c2e26caf152ae (diff) | |
download | cygnal-4f81837d78d8de6040bfb7312ba7e2d7b336a55f.tar.gz cygnal-4f81837d78d8de6040bfb7312ba7e2d7b336a55f.tar.bz2 cygnal-4f81837d78d8de6040bfb7312ba7e2d7b336a55f.zip |
Move _Thread_queue_Queue::_Lock for RTEMS
Move _Thread_queue_Queue::_Lock to begin of the structure. On RTEMS,
the presence of a lock component in the thread queue structures actually
depends on the build-time RTEMS_SMP configuration option. A move of
this part to the begin of the structure allows an implementation re-use
for the other parts.
Signed-off-by: Sebastian Huber <sebastian.huber@embedded-brains.de>
Diffstat (limited to 'newlib')
-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 d2a7fb1aa..002064fa5 100644 --- a/newlib/libc/sys/rtems/include/sys/lock.h +++ b/newlib/libc/sys/rtems/include/sys/lock.h @@ -1,5 +1,5 @@ /* - * Copyright (c) 2015 embedded brains GmbH. All rights reserved. + * Copyright (c) 2015, 2016 embedded brains GmbH. All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions @@ -43,8 +43,8 @@ struct _Ticket_lock_Control { }; struct _Thread_queue_Queue { - struct _Thread_queue_Heads *_heads; struct _Ticket_lock_Control _Lock; + struct _Thread_queue_Heads *_heads; }; struct _Mutex_Control { @@ -70,7 +70,7 @@ struct _Futex_Control { struct _Thread_queue_Queue _Queue; }; -#define _THREAD_QUEUE_INITIALIZER { 0, { 0, 0 } } +#define _THREAD_QUEUE_INITIALIZER { { 0, 0 }, 0 } #define _MUTEX_INITIALIZER { _THREAD_QUEUE_INITIALIZER, 0 } |