aboutsummaryrefslogtreecommitdiffstats
path: root/os/kernel/src/chthreads.c
diff options
context:
space:
mode:
authorgdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4>2011-02-21 19:06:46 +0000
committergdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4>2011-02-21 19:06:46 +0000
commitb3b1028036a2f18327fb97f2126192a2ace62bb2 (patch)
tree4266ff20b2a8b76a331572557a19e64b48f56738 /os/kernel/src/chthreads.c
parent17f0815d52977bd1e3e9e662d2ffdccbaf77a6bd (diff)
downloadChibiOS-b3b1028036a2f18327fb97f2126192a2ace62bb2.tar.gz
ChibiOS-b3b1028036a2f18327fb97f2126192a2ace62bb2.tar.bz2
ChibiOS-b3b1028036a2f18327fb97f2126192a2ace62bb2.zip
TIME_IMMEDIATE and TIME_INFINITE values swapped.
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@2757 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'os/kernel/src/chthreads.c')
-rw-r--r--os/kernel/src/chthreads.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/os/kernel/src/chthreads.c b/os/kernel/src/chthreads.c
index 51efc20d1..a00b5d3db 100644
--- a/os/kernel/src/chthreads.c
+++ b/os/kernel/src/chthreads.c
@@ -273,16 +273,14 @@ void chThdTerminate(Thread *tp) {
* handled as follow:
* - @a TIME_INFINITE the thread enters an infinite sleep
* state.
- * - @a TIME_IMMEDIATE this value is accepted but
- * interpreted as a normal time specification not as an
- * immediate timeout specification.
+ * - @a TIME_IMMEDIATE this value is not allowed.
* .
*
* @api
*/
void chThdSleep(systime_t time) {
- chDbgCheck(time != TIME_INFINITE, "chThdSleep");
+ chDbgCheck(time != TIME_IMMEDIATE, "chThdSleep");
chSysLock();
chThdSleepS(time);