From 03aef59589a44aec94456526a9e207c27149a750 Mon Sep 17 00:00:00 2001 From: gdisirio Date: Sun, 14 Jun 2009 10:30:10 +0000 Subject: git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@1036 35acf78f-673a-0410-8e92-d51de3d6d3f4 --- src/chschd.c | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) (limited to 'src/chschd.c') diff --git a/src/chschd.c b/src/chschd.c index 441070dcb..3ba8b29e9 100644 --- a/src/chschd.c +++ b/src/chschd.c @@ -73,8 +73,8 @@ Thread *chSchReadyI(Thread *tp) { /** * @brief Puts the current thread to sleep into the specified state. - * @details The next highest priority thread becomes running. The threads - * states are described into @p threads.h. + * @details The thread goes into a sleeping state. The @ref thread_states are + * described into @p threads.h. * * @param[in] newstate the new thread state */ @@ -117,9 +117,12 @@ static void wakeup(void *p) { } /** - * @brief Puts the current thread to sleep into the specified state. - * @details The next highest priority thread becomes running. The thread put - * to sleep is awakened after the specified time has elapsed. + * @brief Puts the current thread to sleep into the specified state with + * timeout specification. + * @details The thread goes into a sleeping state, if it is not awakened + * explicitly within the specified timeout then it is forcibly + * awakened with a @p RDY_TIMEOUT low level message. The @ref + * thread_states are described into @p threads.h. * * @param[in] newstate the new thread state * @param[in] time the number of ticks before the operation timeouts, the -- cgit v1.2.3