Changeset 4827470 in rtems


Ignore:
Timestamp:
Jun 29, 2015, 8:41:01 AM (4 years ago)
Author:
Sebastian Huber <sebastian.huber@…>
Branches:
master
Children:
e421936
Parents:
74ef2c1
git-author:
Sebastian Huber <sebastian.huber@…> (06/29/15 08:41:01)
git-committer:
Sebastian Huber <sebastian.huber@…> (07/30/15 06:06:00)
Message:

score: Rename struct Thread_Control

Add a leading underscore to the structure name to allow forward
declarations in standard header files provided by Newlib and GCC.

Location:
cpukit/score/include/rtems/score
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • cpukit/score/include/rtems/score/percpu.h

    r74ef2c1 r4827470  
    5252#if !defined( ASM )
    5353
    54 struct Thread_Control;
     54struct _Thread_Control;
    5555
    5656struct Scheduler_Context;
     
    274274   * a thread context is executing on a processor.
    275275   */
    276   struct Thread_Control *executing;
     276  struct _Thread_Control *executing;
    277277
    278278  /**
     
    288288   * @see _Thread_Get_heir_and_make_it_executing().
    289289   */
    290   struct Thread_Control *heir;
     290  struct _Thread_Control *heir;
    291291
    292292  /**
     
    610610 * @return The thread control block of the executing thread.
    611611 */
    612 RTEMS_INLINE_ROUTINE struct Thread_Control *_Thread_Get_executing( void )
     612RTEMS_INLINE_ROUTINE struct _Thread_Control *_Thread_Get_executing( void )
    613613{
    614   struct Thread_Control *executing;
     614  struct _Thread_Control *executing;
    615615
    616616  #if defined( RTEMS_SMP )
  • cpukit/score/include/rtems/score/thread.h

    r74ef2c1 r4827470  
    670670/**
    671671 *  This structure defines the Thread Control Block (TCB).
    672  */
    673 struct Thread_Control {
     672 *
     673 *  Uses a leading underscore in the structure name to allow forward
     674 *  declarations in standard header files provided by Newlib and GCC.
     675 */
     676struct _Thread_Control {
    674677  /** This field is the object management structure for each thread. */
    675678  Objects_Control          Object;
  • cpukit/score/include/rtems/score/threadq.h

    r74ef2c1 r4827470  
    4040/**@{*/
    4141
    42 typedef struct Thread_Control Thread_Control;
     42typedef struct _Thread_Control Thread_Control;
    4343
    4444typedef struct {
Note: See TracChangeset for help on using the changeset viewer.