diff options
author | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2017-01-11 08:49:26 +0100 |
---|---|---|
committer | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2017-01-12 07:44:36 +0100 |
commit | fa9f964f738502140a48e6ce4ae7025ec6f7dd26 (patch) | |
tree | 476f145c0be675d4d4fb9ab2c0d7e4d30afff0ca | |
parent | score: Replace STATES_DELAYING (diff) | |
download | rtems-fa9f964f738502140a48e6ce4ae7025ec6f7dd26.tar.bz2 |
score: Remove unused _States_Is_*()
-rw-r--r-- | cpukit/score/include/rtems/score/statesimpl.h | 153 |
1 files changed, 0 insertions, 153 deletions
diff --git a/cpukit/score/include/rtems/score/statesimpl.h b/cpukit/score/include/rtems/score/statesimpl.h index f90a89eb7f..6aa09470e7 100644 --- a/cpukit/score/include/rtems/score/statesimpl.h +++ b/cpukit/score/include/rtems/score/statesimpl.h @@ -200,21 +200,6 @@ RTEMS_INLINE_ROUTINE bool _States_Is_ready ( } /** - * This function returns true if the DORMANT state is the ONLY state - * set in the_states, and false otherwise. - * - * @param[in] the_states is the task state set to test - * - * @return This method returns true if the desired state condition is set. - */ -RTEMS_INLINE_ROUTINE bool _States_Is_only_dormant ( - States_Control the_states -) -{ - return (the_states == STATES_DORMANT); -} - -/** * This function returns true if the DORMANT state is set in * the_states, and false otherwise. * @@ -245,96 +230,6 @@ RTEMS_INLINE_ROUTINE bool _States_Is_suspended ( } /** - * This function returns true if the WAITING_FOR_SEGMENT state is set in - * the_states, and false otherwise. - * - * @param[in] the_states is the task state set to test - * - * @return This method returns true if the desired state condition is set. - */ -RTEMS_INLINE_ROUTINE bool _States_Is_waiting_for_segment ( - States_Control the_states -) -{ - return (the_states & STATES_WAITING_FOR_SEGMENT); -} - -/** - * This function returns true if the WAITING_FOR_MESSAGE state is set in - * the_states, and false otherwise. - * - * @param[in] the_states is the task state set to test - * - * @return This method returns true if the desired state condition is set. - */ -RTEMS_INLINE_ROUTINE bool _States_Is_waiting_for_message ( - States_Control the_states -) -{ - return (the_states & STATES_WAITING_FOR_MESSAGE); -} - -/** - * This function returns true if the WAITING_FOR_EVENT state is set in - * the_states, and false otherwise. - * - * @param[in] the_states is the task state set to test - * - * @return This method returns true if the desired state condition is set. - */ -RTEMS_INLINE_ROUTINE bool _States_Is_waiting_for_event ( - States_Control the_states -) -{ - return (the_states & STATES_WAITING_FOR_EVENT); -} - -/** - * This function returns true if the WAITING_FOR_SYSTEM_EVENT state is set in - * the_states, and false otherwise. - * - * @param[in] the_states is the task state set to test - * - * @return This method returns true if the desired state condition is set. - */ -RTEMS_INLINE_ROUTINE bool _States_Is_waiting_for_system_event ( - States_Control the_states -) -{ - return (the_states & STATES_WAITING_FOR_SYSTEM_EVENT); -} - -/** - * This function returns true if the WAITING_FOR_MUTEX state - * is set in the_states, and false otherwise. - * - * @param[in] the_states is the task state set to test - * - * @return This method returns true if the desired state condition is set. - */ -RTEMS_INLINE_ROUTINE bool _States_Is_waiting_for_mutex ( - States_Control the_states -) -{ - return (the_states & STATES_WAITING_FOR_MUTEX); -} - -/** - * This function returns true if the WAITING_FOR_SEMAPHORE state - * is set in the_states, and false otherwise. - * - * @param[in] the_states is the task state set to test - * - * @return This method returns true if the desired state condition is set. - */ -RTEMS_INLINE_ROUTINE bool _States_Is_waiting_for_semaphore ( - States_Control the_states -) -{ - return (the_states & STATES_WAITING_FOR_SEMAPHORE); -} - -/** * This function returns true if the WAITING_FOR_TIME state is set in * the_states, and false otherwise. * @@ -349,21 +244,6 @@ RTEMS_INLINE_ROUTINE bool _States_Is_waiting_for_rpc_reply ( return (the_states & STATES_WAITING_FOR_RPC_REPLY); } -/** - * This function returns true if the WAITING_FOR_PERIOD state is set in - * the_states, and false otherwise. - * - * @param[in] the_states is the task state set to test - * - * @return This method returns true if the desired state condition is set. - */ -RTEMS_INLINE_ROUTINE bool _States_Is_waiting_for_period ( - States_Control the_states -) -{ - return (the_states & STATES_WAITING_FOR_PERIOD); -} - RTEMS_INLINE_ROUTINE bool _States_Is_waiting_for_join_at_exit( States_Control the_states ) @@ -403,39 +283,6 @@ RTEMS_INLINE_ROUTINE bool _States_Is_locally_blocked ( return (the_states & STATES_LOCALLY_BLOCKED); } -/** - * This function returns true if one of the states which indicates - * that a task is blocked is set in the_states, and false otherwise. - * - * @param[in] the_states is the task state set to test - * - * @return This method returns true if the state indicates that the - * assocated thread is blocked. - */ -RTEMS_INLINE_ROUTINE bool _States_Is_blocked ( - States_Control the_states -) -{ - return (the_states & STATES_BLOCKED); -} - -/** - * This function returns true if any of the states in the mask - * are set in the_states, and false otherwise. - * - * @param[in] the_states is the task state set to test - * @param[in] mask is the state bits to test for - * - * @return This method returns true if the indicates state condition is set. - */ -RTEMS_INLINE_ROUTINE bool _States_Are_set ( - States_Control the_states, - States_Control mask -) -{ - return ( (the_states & mask) != STATES_READY); -} - /** @} */ #ifdef __cplusplus |