aboutsummaryrefslogtreecommitdiffstats
path: root/src/chcond.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/chcond.c')
-rw-r--r--src/chcond.c10
1 files changed, 8 insertions, 2 deletions
diff --git a/src/chcond.c b/src/chcond.c
index bc19b978f..b531cffa4 100644
--- a/src/chcond.c
+++ b/src/chcond.c
@@ -162,7 +162,10 @@ msg_t chCondWaitS(CondVar *cp) {
* acquires the mutex again. This is done atomically.
*
* @param cp pointer to the @p CondVar structure
- * @param time the number of ticks before the operation fails
+ * @param time the number of ticks before the operation timeouts,
+ * the following special values are allowed:
+ * - @a TIME_ZERO immediate timeout.
+ * - @a TIME_INFINITE no timeout.
* @return The wakep mode.
* @retval RDY_OK if the condvar was signaled using chCondSignal().
* @retval RDY_RESET if the condvar was signaled using chCondBroadcast().
@@ -186,7 +189,10 @@ msg_t chCondWaitTimeout(CondVar *cp, systime_t time) {
* acquires the mutex again. This is done atomically.
*
* @param cp pointer to the @p CondVar structure
- * @param time the number of ticks before the operation fails
+ * @param time the number of ticks before the operation timeouts,
+ * the following special values are allowed:
+ * - @a TIME_ZERO immediate timeout.
+ * - @a TIME_INFINITE no timeout.
* @return The wakep mode.
* @retval RDY_OK if the condvar was signaled using chCondSignal().
* @retval RDY_RESET if the condvar was signaled using chCondBroadcast().