@@ -105,7 +105,7 @@ ddsrt_cond_destroy(
105105ddsrt_nonnull_all ;
106106
107107/**
108- * @brief Initialize a condition variable.
108+ * @brief Initialize a condition variable bound to the wall clock .
109109 *
110110 * @param[in] cond Condition variable to initialize.
111111 */
@@ -115,7 +115,7 @@ ddsrt_cond_wctime_init(
115115ddsrt_nonnull_all ;
116116
117117/**
118- * @brief Destroy a condition variable.
118+ * @brief Destroy a condition variable bound to the wall clock .
119119 *
120120 * @param[in] cond Condition variable to destroy.
121121 */
@@ -125,7 +125,7 @@ ddsrt_cond_wctime_destroy(
125125ddsrt_nonnull_all ;
126126
127127/**
128- * @brief Initialize a condition variable.
128+ * @brief Initialize a condition variable bound to the monotonic clock .
129129 *
130130 * @param[in] cond Condition variable to initialize.
131131 */
@@ -135,7 +135,7 @@ ddsrt_cond_mtime_init(
135135ddsrt_nonnull_all ;
136136
137137/**
138- * @brief Destroy a condition variable.
138+ * @brief Destroy a condition variable bound to the monotonic clock .
139139 *
140140 * @param[in] cond Condition variable to destroy.
141141 */
@@ -145,7 +145,7 @@ ddsrt_cond_mtime_destroy(
145145ddsrt_nonnull_all ;
146146
147147/**
148- * @brief Initialize a condition variable.
148+ * @brief Initialize a condition variable bound to the elasped clock .
149149 *
150150 * @param[in] cond Condition variable to initialize.
151151 */
@@ -155,7 +155,7 @@ ddsrt_cond_etime_init(
155155ddsrt_nonnull_all ;
156156
157157/**
158- * @brief Destroy a condition variable.
158+ * @brief Destroy a condition variable bound to the elapsed clock .
159159 *
160160 * @param[in] cond Condition variable to destroy.
161161 */
@@ -181,7 +181,7 @@ ddsrt_cond_wait(
181181ddsrt_nonnull_all ;
182182
183183/**
184- * @brief Wait for a condition variable to be signalled.
184+ * @brief Wait for a condition variable bound to the wall clock to be signalled.
185185 *
186186 * @param[in] cond Condition variable to block on.
187187 * @param[in] mutex Mutex to associate with condition variable.
@@ -197,7 +197,7 @@ ddsrt_cond_wctime_wait(
197197ddsrt_nonnull_all ;
198198
199199/**
200- * @brief Wait for a condition variable to be signalled.
200+ * @brief Wait for a condition variable bound to the monotonic clock to be signalled.
201201 *
202202 * @param[in] cond Condition variable to block on.
203203 * @param[in] mutex Mutex to associate with condition variable.
@@ -213,7 +213,7 @@ ddsrt_cond_mtime_wait(
213213ddsrt_nonnull_all ;
214214
215215/**
216- * @brief Wait for a condition variable to be signalled.
216+ * @brief Wait for a condition variable bound to the elapsed clock to be signalled.
217217 *
218218 * @param[in] cond Condition variable to block on.
219219 * @param[in] mutex Mutex to associate with condition variable.
@@ -229,7 +229,10 @@ ddsrt_cond_etime_wait(
229229ddsrt_nonnull_all ;
230230
231231/**
232- * @brief Wait until @abstime for a condition variable to be signalled.
232+ * @brief Wait until @abstime for a condition variable bound to the wall clock to be signalled.
233+ *
234+ * For platforms that only provide relative timeouts, the function will convert the absolute timeout
235+ * to a relative one by subtracting the current time according to the wall clock.
233236 *
234237 * @param[in] cond Condition variable to block on.
235238 * @param[in] mutex Mutex to associate with condition variable.
@@ -250,7 +253,13 @@ ddsrt_cond_wctime_waituntil(
250253ddsrt_nonnull ((1 ,2 ));
251254
252255/**
253- * @brief Wait until @abstime for a condition variable to be signalled.
256+ * @brief Wait until @abstime for a condition variable bound to the monotonic clock to be signalled.
257+ *
258+ * For platforms that only provide relative timeouts, the function will convert the absolute timeout
259+ * to a relative one by subtracting the current time according to the monotonic clock. For platforms
260+ * that do not support binding a condition variable to a specific clock and require an absolute timeout
261+ * the timeout is calculated by converting the relative timeout to an absolute timeout on the wall clock
262+ * by adding the current time according to the wall clock.
254263 *
255264 * @param[in] cond Condition variable to block on.
256265 * @param[in] mutex Mutex to associate with condition variable.
@@ -271,7 +280,13 @@ ddsrt_cond_mtime_waituntil(
271280ddsrt_nonnull ((1 ,2 ));
272281
273282/**
274- * @brief Wait until @abstime for a condition variable to be signalled.
283+ * @brief Wait until @abstime for a condition variable bound to the elapsed clock to be signalled.
284+ *
285+ * For platforms that only provide relative timeouts, the function will convert the absolute timeout
286+ * to a relative one by subtracting the current time according to the elapsed clock. For platforms
287+ * that do not support binding a condition variable to a specific clock and require an absolute timeout
288+ * the timeout is calculated by converting the relative timeout to an absolute timeout on the wall clock
289+ * by adding the current time according to the wall clock.
275290 *
276291 * @param[in] cond Condition variable to block on.
277292 * @param[in] mutex Mutex to associate with condition variable.
@@ -306,7 +321,7 @@ ddsrt_cond_signal(
306321ddsrt_nonnull_all ;
307322
308323/**
309- * @brief Signal a condition variable and unblock at least one thread.
324+ * @brief Signal a condition variable bound to the wall clock and unblock at least one thread.
310325 *
311326 * @param[in] cond Condition variable to signal.
312327 *
@@ -320,7 +335,7 @@ ddsrt_cond_wctime_signal(
320335ddsrt_nonnull_all ;
321336
322337/**
323- * @brief Signal a condition variable and unblock at least one thread.
338+ * @brief Signal a condition variable bound to the monotonic clock and unblock at least one thread.
324339 *
325340 * @param[in] cond Condition variable to signal.
326341 *
@@ -335,7 +350,7 @@ ddsrt_cond_mtime_signal(
335350ddsrt_nonnull_all ;
336351
337352/**
338- * @brief Signal a condition variable and unblock at least one thread.
353+ * @brief Signal a condition variable bound to the elapsed clock and unblock at least one thread.
339354 *
340355 * @param[in] cond Condition variable to signal.
341356 *
@@ -363,7 +378,7 @@ ddsrt_cond_broadcast(
363378ddsrt_nonnull_all ;
364379
365380/**
366- * @brief Signal a condition variable and unblock all threads.
381+ * @brief Signal a condition variable bound to the wall clock and unblock all threads.
367382 *
368383 * @param[in] cond Condition variable to signal.
369384 *
@@ -377,7 +392,7 @@ ddsrt_cond_wctime_broadcast(
377392ddsrt_nonnull_all ;
378393
379394/**
380- * @brief Signal a condition variable and unblock all threads.
395+ * @brief Signal a condition variable bound to the monotonic clock and unblock all threads.
381396 *
382397 * @param[in] cond Condition variable to signal.
383398 *
@@ -391,7 +406,7 @@ ddsrt_cond_mtime_broadcast(
391406ddsrt_nonnull_all ;
392407
393408/**
394- * @brief Signal a condition variable and unblock all threads.
409+ * @brief Signal a condition variable bound to the elapsed clock and unblock all threads.
395410 *
396411 * @param[in] cond Condition variable to signal.
397412 *
0 commit comments