Changeset dfcc8bb in rtems for cpukit/score/src/threadq.c


Ignore:
Timestamp:
May 3, 2016, 5:43:54 AM (4 years ago)
Author:
Sebastian Huber <sebastian.huber@…>
Branches:
master
Children:
0e1d11f3
Parents:
868cd24d
git-author:
Sebastian Huber <sebastian.huber@…> (05/03/16 05:43:54)
git-committer:
Sebastian Huber <sebastian.huber@…> (05/30/16 12:36:18)
Message:

score: Adjust thread queue layout

Adjust thread queue layout according to Newlib. This makes it possible
to use the same implementation for <sys/lock.h> and CORE mutexes in the
future.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • cpukit/score/src/threadq.c

    r868cd24d rdfcc8bb  
    2626
    2727RTEMS_STATIC_ASSERT(
    28   offsetof( Thread_queue_Syslock_queue, Queue.heads )
    29     == offsetof( struct _Thread_queue_Queue, _heads ),
    30   THREAD_QUEUE_SYSLOCK_QUEUE_HEADS
    31 );
    32 
    33 RTEMS_STATIC_ASSERT(
    3428#if defined(RTEMS_SMP)
    3529  offsetof( Thread_queue_Syslock_queue, Queue.Lock.next_ticket )
     
    4943    == offsetof( struct _Thread_queue_Queue, _Lock._now_serving ),
    5044  THREAD_QUEUE_SYSLOCK_QUEUE_NOW_SERVING
     45);
     46
     47RTEMS_STATIC_ASSERT(
     48  offsetof( Thread_queue_Syslock_queue, Queue.heads )
     49    == offsetof( struct _Thread_queue_Queue, _heads ),
     50  THREAD_QUEUE_SYSLOCK_QUEUE_HEADS
     51);
     52
     53RTEMS_STATIC_ASSERT(
     54  offsetof( Thread_queue_Syslock_queue, Queue.owner )
     55    == offsetof( struct _Thread_queue_Queue, _owner ),
     56  THREAD_QUEUE_SYSLOCK_QUEUE_OWNER
    5157);
    5258
Note: See TracChangeset for help on using the changeset viewer.