diff options
author | gdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4> | 2009-03-11 14:24:02 +0000 |
---|---|---|
committer | gdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4> | 2009-03-11 14:24:02 +0000 |
commit | 89788b3234417d8aea3d5e34d78bf24c4e1da444 (patch) | |
tree | 1704eebea5af24a960d920e514eb151ee4cfeeb2 /src/chschd.c | |
parent | 80a8621ec04e3fa9588ad09cbf0f1b6da1429776 (diff) | |
download | ChibiOS-89788b3234417d8aea3d5e34d78bf24c4e1da444.tar.gz ChibiOS-89788b3234417d8aea3d5e34d78bf24c4e1da444.tar.bz2 ChibiOS-89788b3234417d8aea3d5e34d78bf24c4e1da444.zip |
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@831 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'src/chschd.c')
-rw-r--r-- | src/chschd.c | 14 |
1 files changed, 9 insertions, 5 deletions
diff --git a/src/chschd.c b/src/chschd.c index b246d8f57..23b9871f9 100644 --- a/src/chschd.c +++ b/src/chschd.c @@ -122,11 +122,15 @@ static void wakeup(void *p) { * to sleep is awakened after the specified time has elapsed. * * @param[in] newstate the new thread state - * @param[in] time the number of ticks before the operation timeouts, - * the special value @p TIME_INFINITE is allowed. - * It is not possible to specify @p TIME_IMMEDIATE as timeout - * specification, it is interpreted as a normal time - * specification. + * @param[in] time the number of ticks before the operation timeouts, the + * special values are handled as follow: + * - @a TIME_INFINITE the thread enters an infinite sleep + * state, this is equivalent to invoking @p chSchGoSleepS() + * but, of course, less efficient. + * - @a TIME_IMMEDIATE this value is accepted but interpreted + * as a normal time specification not as an immediate timeout + * specification. + * . * @return The wakeup message. * @retval RDY_TIMEOUT if a timeout occurs. * @note The function must be called in the system mutex zone. |