diff options
author | gdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4> | 2008-10-17 18:33:35 +0000 |
---|---|---|
committer | gdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4> | 2008-10-17 18:33:35 +0000 |
commit | 1d23eb296156769cff3e41bd7026db1cd2538664 (patch) | |
tree | 512bbaa17560196c09dcce171bcb28a367838542 /src/chschd.c | |
parent | 3d3e5728aa1d14444b99732426d36f6375013727 (diff) | |
download | ChibiOS-1d23eb296156769cff3e41bd7026db1cd2538664.tar.gz ChibiOS-1d23eb296156769cff3e41bd7026db1cd2538664.tar.bz2 ChibiOS-1d23eb296156769cff3e41bd7026db1cd2538664.zip |
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@474 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'src/chschd.c')
-rw-r--r-- | src/chschd.c | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/src/chschd.c b/src/chschd.c index 8b606cd1b..c9e4608ca 100644 --- a/src/chschd.c +++ b/src/chschd.c @@ -48,7 +48,7 @@ void chSchInit(void) { * Inserts a thread in the Ready List. * * @param tp the Thread to be made ready - * @return the Thread pointer + * @return The Thread pointer. * @note The function must be called in the system mutex zone. * @note The function does not reschedule, the \p chSchRescheduleS() should * be called soon after. @@ -108,15 +108,16 @@ static void wakeup(void *p) { } /** - * Put the current thread to sleep. + * Puts the current thread to sleep. * * Puts the current thread to sleep into the specified state. The next highest * priority thread becomes running. The thread put to sleep is awakened after * the specified time has elapsed. * * @param newstate the new thread state - * @param time the number of ticks before the operation timouts - * @return the wakeup message, it is \p RDY_TIMEOUT if a timeout occurs + * @param time the number of ticks before the operation timeouts + * @return The wakeup message. + * @retval RDY_TIMEOUT if a timeout occurs. * @note The function must be called in the system mutex zone. * @note The function is not meant to be used in the user code directly. */ @@ -134,9 +135,8 @@ msg_t chSchGoSleepTimeoutS(tstate_t newstate, systime_t time) { /** * Wakes up a thread. * - * Wakes up a thread. The thread is inserted into the ready list or immediately - * made running depending on its relative priority compared to the current - * thread. + * The thread is inserted into the ready list or immediately made running + * depending on its relative priority compared to the current thread. * @param ntp the Thread to be made ready * @param msg message to the awakened thread * @note The function must be called in the system mutex zone. @@ -171,7 +171,7 @@ void chSchWakeupS(Thread *ntp, msg_t msg) { /** * Switch to the first thread on the runnable queue. * - * Intended to be called if \p chSchRescRequired() evaluates to \p TRUE. + * @note It is intended to be called if \p chSchRescRequired() evaluates to \p TRUE. */ void chSchDoRescheduleI(void) { @@ -206,8 +206,8 @@ void chSchRescheduleS(void) { /** * Evaluates if rescheduling is required. * - * @return \p TRUE if there is a thread that should go in running state - * immediately else \p FALSE. + * @retval TRUE if there is a thread that should go in running state. + * @retval FALSE if a reschedulation is not required. */ bool_t chSchRescRequiredI(void) { tprio_t p1 = firstprio(&rlist.r_queue); |