Changeset 1461aba8 in rtems


Ignore:
Timestamp:
Mar 27, 2015, 8:13:29 PM (5 years ago)
Author:
Sebastian Huber <sebastian.huber@…>
Branches:
4.11, master
Children:
41814fa6
Parents:
edcf89b
git-author:
Sebastian Huber <sebastian.huber@…> (03/27/15 20:13:29)
git-committer:
Sebastian Huber <sebastian.huber@…> (04/08/15 09:48:15)
Message:

score: Use _Thread_Clear_state() for _Thread_Ready

Location:
cpukit/score
Files:
1 deleted
3 edited

Legend:

Unmodified
Added
Removed
  • cpukit/score/Makefile.am

    redcf89b r1461aba8  
    285285    src/threadenabledispatch.c src/threaddisabledispatch.c \
    286286    src/threadget.c src/threadhandler.c src/threadinitialize.c \
    287     src/threadloadenv.c src/threadready.c \
     287    src/threadloadenv.c \
    288288    src/threadrestart.c src/threadsetpriority.c \
    289289    src/threadsetstate.c \
  • cpukit/score/include/rtems/score/statesimpl.h

    redcf89b r1461aba8  
    119119                                 STATES_INTERRUPTIBLE_BY_SIGNAL )
    120120
     121/** All state bits set to one (provided for _Thread_Ready()) */
     122#define STATES_ALL_SET 0xffffffff
     123
    121124/**
    122125 * This function sets the given states_to_set into the current_state
  • cpukit/score/include/rtems/score/threadimpl.h

    redcf89b r1461aba8  
    228228
    229229/**
    230  *  @brief Removes any set states for @a the_thread.
    231  *
    232  *  This routine removes any set states for @a the_thread.  It performs
    233  *  any necessary scheduling operations including the selection of
    234  *  a new heir thread.
    235  *
    236  *  - INTERRUPT LATENCY:
    237  *    + ready chain
    238  *    + select heir
    239  */
    240 void _Thread_Ready(
    241   Thread_Control *the_thread
    242 );
    243 
    244 /**
    245230 * @brief Clears the specified thread state.
    246231 *
     
    273258  States_Control  state
    274259);
     260
     261/**
     262 * @brief Clears all thread states.
     263 *
     264 * In case the previous state is a non-ready state, then the thread is
     265 * unblocked by the scheduler.
     266 *
     267 * @param[in] the_thread The thread.
     268 */
     269RTEMS_INLINE_ROUTINE void _Thread_Ready(
     270  Thread_Control *the_thread
     271)
     272{
     273  _Thread_Clear_state( the_thread, STATES_ALL_SET );
     274}
    275275
    276276/**
Note: See TracChangeset for help on using the changeset viewer.