Changeset 32b2c83 in rtems


Ignore:
Timestamp:
Nov 22, 2012, 2:00:21 PM (7 years ago)
Author:
Sebastian Huber <sebastian.huber@…>
Branches:
4.11, master
Children:
74d22fd1
Parents:
3be0c9a
git-author:
Sebastian Huber <sebastian.huber@…> (11/22/12 14:00:21)
git-committer:
Sebastian Huber <sebastian.huber@…> (11/22/12 15:35:07)
Message:

score: Inline _User_extensions_Thread_switch()

The _User_extensions_Thread_switch() function is only used in
_Thread_Dispatch().

Location:
cpukit/score
Files:
1 deleted
2 edited

Legend:

Unmodified
Added
Removed
  • cpukit/score/Makefile.am

    r3be0c9a r32b2c83  
    320320## USEREXT_C_FILES
    321321libscore_a_SOURCES += src/userextaddset.c \
    322     src/userext.c src/userextremoveset.c src/userextiterate.c \
    323     src/userextthreadswitch.c
     322    src/userext.c src/userextremoveset.c src/userextiterate.c
    324323
    325324## STD_C_FILES
  • cpukit/score/include/rtems/score/userextimpl.h

    r3be0c9a r32b2c83  
    200200}
    201201
    202 void _User_extensions_Thread_switch(
     202static inline void _User_extensions_Thread_switch(
    203203  Thread_Control *executing,
    204204  Thread_Control *heir
    205 );
     205)
     206{
     207  const Chain_Control *chain = &_User_extensions_Switches_list;
     208  const Chain_Node    *tail = _Chain_Immutable_tail( chain );
     209  const Chain_Node    *node = _Chain_Immutable_first( chain );
     210
     211  while ( node != tail ) {
     212    const User_extensions_Switch_control *extension =
     213      (const User_extensions_Switch_control *) node;
     214
     215    (*extension->thread_switch)( executing, heir );
     216
     217    node = _Chain_Immutable_next( node );
     218  }
     219}
    206220
    207221static inline void _User_extensions_Thread_exitted( Thread_Control *executing )
Note: See TracChangeset for help on using the changeset viewer.