Ignore:
Timestamp:
Jan 11, 2017, 7:49:26 AM (4 years ago)
Author:
Sebastian Huber <sebastian.huber@…>
Branches:
5, master
Children:
0c43130
Parents:
d063e7b3
git-author:
Sebastian Huber <sebastian.huber@…> (01/11/17 07:49:26)
git-committer:
Sebastian Huber <sebastian.huber@…> (01/12/17 06:44:36)
Message:

score: Remove unused _States_Is_*()

File:
1 edited

Legend:

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

    rd063e7b3 rfa9f964f  
    201201
    202202/**
    203  * This function returns true if the DORMANT state is the ONLY state
    204  * set in the_states, and false otherwise.
    205  *
    206  * @param[in] the_states is the task state set to test
    207  *
    208  * @return This method returns true if the desired state condition is set.
    209  */
    210 RTEMS_INLINE_ROUTINE bool _States_Is_only_dormant (
    211   States_Control the_states
    212 )
    213 {
    214    return (the_states == STATES_DORMANT);
    215 }
    216 
    217 /**
    218203 * This function returns true if the DORMANT state is set in
    219204 * the_states, and false otherwise.
     
    246231
    247232/**
    248  * This function returns true if the WAITING_FOR_SEGMENT state is set in
    249  * the_states, and false otherwise.
    250  *
    251  * @param[in] the_states is the task state set to test
    252  *
    253  * @return This method returns true if the desired state condition is set.
    254  */
    255 RTEMS_INLINE_ROUTINE bool _States_Is_waiting_for_segment (
    256   States_Control the_states
    257 )
    258 {
    259    return (the_states & STATES_WAITING_FOR_SEGMENT);
    260 }
    261 
    262 /**
    263  * This function returns true if the WAITING_FOR_MESSAGE state is set in
    264  * the_states, and false otherwise.
    265  *
    266  * @param[in] the_states is the task state set to test
    267  *
    268  * @return This method returns true if the desired state condition is set.
    269  */
    270 RTEMS_INLINE_ROUTINE bool _States_Is_waiting_for_message (
    271   States_Control the_states
    272 )
    273 {
    274    return (the_states & STATES_WAITING_FOR_MESSAGE);
    275 }
    276 
    277 /**
    278  * This function returns true if the WAITING_FOR_EVENT state is set in
    279  * the_states, and false otherwise.
    280  *
    281  * @param[in] the_states is the task state set to test
    282  *
    283  * @return This method returns true if the desired state condition is set.
    284  */
    285 RTEMS_INLINE_ROUTINE bool _States_Is_waiting_for_event (
    286   States_Control the_states
    287 )
    288 {
    289    return (the_states & STATES_WAITING_FOR_EVENT);
    290 }
    291 
    292 /**
    293  * This function returns true if the WAITING_FOR_SYSTEM_EVENT state is set in
    294  * the_states, and false otherwise.
    295  *
    296  * @param[in] the_states is the task state set to test
    297  *
    298  * @return This method returns true if the desired state condition is set.
    299  */
    300 RTEMS_INLINE_ROUTINE bool _States_Is_waiting_for_system_event (
    301   States_Control the_states
    302 )
    303 {
    304    return (the_states & STATES_WAITING_FOR_SYSTEM_EVENT);
    305 }
    306 
    307 /**
    308  * This function returns true if the WAITING_FOR_MUTEX state
    309  * is set in the_states, and false otherwise.
    310  *
    311  * @param[in] the_states is the task state set to test
    312  *
    313  * @return This method returns true if the desired state condition is set.
    314  */
    315 RTEMS_INLINE_ROUTINE bool _States_Is_waiting_for_mutex (
    316   States_Control the_states
    317 )
    318 {
    319    return (the_states & STATES_WAITING_FOR_MUTEX);
    320 }
    321 
    322 /**
    323  * This function returns true if the WAITING_FOR_SEMAPHORE state
    324  * is set in the_states, and false otherwise.
    325  *
    326  * @param[in] the_states is the task state set to test
    327  *
    328  * @return This method returns true if the desired state condition is set.
    329  */
    330 RTEMS_INLINE_ROUTINE bool _States_Is_waiting_for_semaphore (
    331   States_Control the_states
    332 )
    333 {
    334    return (the_states & STATES_WAITING_FOR_SEMAPHORE);
    335 }
    336 
    337 /**
    338233 * This function returns true if the WAITING_FOR_TIME state is set in
    339234 * the_states, and false otherwise.
     
    348243{
    349244   return (the_states & STATES_WAITING_FOR_RPC_REPLY);
    350 }
    351 
    352 /**
    353  * This function returns true if the WAITING_FOR_PERIOD state is set in
    354  * the_states, and false otherwise.
    355  *
    356  * @param[in] the_states is the task state set to test
    357  *
    358  * @return This method returns true if the desired state condition is set.
    359  */
    360 RTEMS_INLINE_ROUTINE bool _States_Is_waiting_for_period (
    361   States_Control the_states
    362 )
    363 {
    364    return (the_states & STATES_WAITING_FOR_PERIOD);
    365245}
    366246
     
    404284}
    405285
    406 /**
    407  * This function returns true if one of the states which indicates
    408  * that a task is blocked is set in the_states, and false otherwise.
    409  *
    410  * @param[in] the_states is the task state set to test
    411  *
    412  * @return This method returns true if the state indicates that the
    413  *         assocated thread is blocked.
    414  */
    415 RTEMS_INLINE_ROUTINE bool _States_Is_blocked (
    416   States_Control the_states
    417 )
    418 {
    419    return (the_states & STATES_BLOCKED);
    420 }
    421 
    422 /**
    423  * This function returns true if any of the states in the mask
    424  * are set in the_states, and false otherwise.
    425  *
    426  * @param[in] the_states is the task state set to test
    427  * @param[in] mask is the state bits to test for
    428  *
    429  * @return This method returns true if the indicates state condition is set.
    430  */
    431 RTEMS_INLINE_ROUTINE bool _States_Are_set (
    432   States_Control the_states,
    433   States_Control mask
    434 )
    435 {
    436    return ( (the_states & mask) != STATES_READY);
    437 }
    438 
    439286/** @} */
    440287
Note: See TracChangeset for help on using the changeset viewer.