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/include/rtems/score/threadq.h

    r868cd24d rdfcc8bb  
    156156typedef struct {
    157157  /**
     158   * @brief Lock to protect this thread queue.
     159   *
     160   * It may be used to protect additional state of the object embedding this
     161   * thread queue.
     162   *
     163   * Must be the first component of this structure to be able to re-use
     164   * implementation parts for structures defined by Newlib <sys/lock.h>.
     165   *
     166   * @see _Thread_queue_Acquire(), _Thread_queue_Acquire_critical() and
     167   * _Thread_queue_Release().
     168   */
     169#if defined(RTEMS_SMP)
     170  SMP_ticket_lock_Control Lock;
     171#endif
     172
     173  /**
    158174   * @brief The thread queue heads.
    159175   *
     
    165181
    166182  /**
    167    * @brief Lock to protect this thread queue.
    168    *
    169    * It may be used to protect additional state of the object embedding this
    170    * thread queue.
    171    *
    172    * @see _Thread_queue_Acquire(), _Thread_queue_Acquire_critical() and
    173    * _Thread_queue_Release().
    174    */
    175 #if defined(RTEMS_SMP)
    176   SMP_ticket_lock_Control Lock;
    177 #endif
     183   * @brief The thread queue owner.
     184   */
     185  Thread_Control *owner;
    178186} Thread_queue_Queue;
    179187
Note: See TracChangeset for help on using the changeset viewer.