From ca10004ef252b3ef7da95d3b9e7437c5c9256d20 Mon Sep 17 00:00:00 2001 From: Sebastian Huber Date: Thu, 26 Mar 2015 21:16:09 +0100 Subject: score: Simplify _Thread_Set_state() --- cpukit/score/include/rtems/score/threadimpl.h | 15 +++++---------- 1 file changed, 5 insertions(+), 10 deletions(-) (limited to 'cpukit/score/include/rtems/score/threadimpl.h') diff --git a/cpukit/score/include/rtems/score/threadimpl.h b/cpukit/score/include/rtems/score/threadimpl.h index 551df452d6..f32362f7e2 100644 --- a/cpukit/score/include/rtems/score/threadimpl.h +++ b/cpukit/score/include/rtems/score/threadimpl.h @@ -258,18 +258,13 @@ void _Thread_Clear_state( ); /** - * @brief Sets the indicated @a state for @a the_thread. + * @brief Sets the specified thread state. * - * This routine sets the indicated @a state for @a the_thread. It performs - * any necessary scheduling operations including the selection of - * a new heir thread. - * - * @param[in] the_thread is the thread to set the state for. - * @param[in] state is the state to set the_thread to. + * In case the previous state is the ready state, then the thread is blocked by + * the scheduler. * - * - INTERRUPT LATENCY: - * + ready chain - * + select map + * @param[in] the_thread The thread. + * @param[in] state The state to set. It must not be zero. */ void _Thread_Set_state( Thread_Control *the_thread, -- cgit v1.2.3