@@ -90,7 +90,7 @@ struct Waiter;
90
90
* Mutex mutex;
91
91
* ConditionVariable cv(mutex);
92
92
*
93
- * // These variables are protected by locking mutex.
93
+ * // These variables are protected by locking the mutex.
94
94
* uint32_t work_count = 0;
95
95
* bool done = false;
96
96
*
@@ -123,7 +123,7 @@ struct Waiter;
123
123
* // Acquire lock on mutex before modifying variables and notifying.
124
124
* mutex.lock();
125
125
*
126
- * // Change count and notify waiters of this .
126
+ * // Change count and notify waiters.
127
127
* work_count++;
128
128
* printf("Main thread: Set count to: %lu\r\n", work_count);
129
129
* printf("Main thread: Notifying worker thread\r\n");
@@ -195,7 +195,7 @@ class ConditionVariable : private mbed::NonCopyable<ConditionVariable> {
195
195
* reached.
196
196
*
197
197
* @param millisec Absolute end time referenced to `Kernel::get_ms_count()`
198
- * @return True if a timeout occurred, false otherwise.
198
+ * @return `true` if a timeout occurred, ` false` otherwise.
199
199
*
200
200
* @note - The thread calling this function must be the owner of the
201
201
* ConditionVariable's mutex, and it must be locked exactly once.
@@ -236,7 +236,7 @@ class ConditionVariable : private mbed::NonCopyable<ConditionVariable> {
236
236
* specified by the millisec parameter is reached.
237
237
*
238
238
* @param millisec Timeout value or osWaitForever in case of no timeout.
239
- * @return True if a timeout occurred, false otherwise.
239
+ * @return `true` if a timeout occurred, ` false` otherwise.
240
240
*
241
241
* @note - The thread calling this function must be the owner of the
242
242
* ConditionVariable's mutex, and it must be locked exactly once.
0 commit comments