Skip to content

Commit 5cc5e47

Browse files
author
Melinda Weed
committed
future to present tense
1 parent 8ddfdf5 commit 5cc5e47

File tree

1 file changed

+18
-18
lines changed

1 file changed

+18
-18
lines changed

rtos/ConditionVariable.h

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
/* mbed Microcontroller Library
2-
* Copyright (c) 2017-2017 ARM Limited
1+
/* Mbed Microcontroller Library
2+
* Copyright (c) 2017-2018 ARM Limited
33
*
44
* Permission is hereby granted, free of charge, to any person obtaining a copy
55
* of this software and associated documentation files (the "Software"), to deal
@@ -38,32 +38,32 @@ struct Waiter;
3838
/** The ConditionVariable class is a synchronization primitive that allows
3939
* threads to wait until a particular condition occurs.
4040
*
41-
* The condition variable is used in conjunction with a mutex to safely wait for
41+
* Use the condition variable in conjunction with a mutex to safely wait for
4242
* or notify waiters of condition changes to a resource accessible by multiple
4343
* threads.
4444
*
4545
* The thread that intends to wait on a ConditionVariable must:
4646
* - Acquire a lock on a mutex
4747
* - Execute `wait`, `wait_for` or `wait_until`. While the thread is waiting,
48-
* the mutex will be unlocked.
48+
* the mutex is unlocked.
4949
* - When the condition variable has been notified, or in the case of `wait_for`
5050
* and `wait_until` the timeout expires, the thread is awakened.
5151
*
5252
* The thread that intends to notify a ConditionVariable must:
5353
* - Acquire a lock on the mutex used to construct the condition variable.
5454
* - Execute `notify_one` or `notify_all` on the condition variable.
5555
*
56-
* ## Defined behavior
57-
* - All threads that are waiting on the condition variable will wake when
58-
* ConditionVariable::notify_all is called.
59-
* - At least one thread that is waiting on the condition variable will wake
60-
* when ConditionVariable::notify_one is called.
56+
* ### Defined behavior
57+
* - All threads waiting on the condition variable wake when
58+
* `ConditionVariable::notify_all` is called.
59+
* - At least one thread waiting on the condition variable wakes
60+
* when `ConditionVariable::notify_one` is called.
6161
* - While a thread is waiting for notification of a
62-
* ConditionVariable, it will release the lock held on the mutex.
63-
* - The ConditionVariable will reacquire the mutex lock before exiting the wait
62+
* ConditionVariable, it releases the lock held on the mutex.
63+
* - The ConditionVariable reacquires the mutex lock before exiting the wait
6464
* function.
6565
*
66-
* ## Undefined behavior
66+
* ### Undefined behavior
6767
* - The thread that is unblocked on ConditionVariable::notify_one is
6868
* undefined if there are multiple waiters.
6969
* - Calling wait if the mutex is not locked by the current thread is undefined
@@ -167,8 +167,8 @@ class ConditionVariable : private mbed::NonCopyable<ConditionVariable> {
167167
* @note - Spurious notifications can occur, so the caller of this API
168168
* should check to make sure the condition the caller is waiting on has
169169
* been met.
170-
*
171-
* @note - The current thread will release the lock while inside the wait
170+
*
171+
* @note - The current thread releases the lock while inside the wait
172172
* function and reacquire it upon exiting the function.
173173
*
174174
* Example:
@@ -204,7 +204,7 @@ class ConditionVariable : private mbed::NonCopyable<ConditionVariable> {
204204
* should check to make sure the condition the caller is waiting on has
205205
* been met.
206206
*
207-
* @note - The current thread will release the lock while inside the wait
207+
* @note - The current thread releases the lock while inside the wait
208208
* function and reacquire it upon exiting the function.
209209
*
210210
* Example:
@@ -245,7 +245,7 @@ class ConditionVariable : private mbed::NonCopyable<ConditionVariable> {
245245
* should check to make sure the condition the caller is waiting on has
246246
* been met.
247247
*
248-
* @note - The current thread will release the lock while inside the wait
248+
* @note - The current thread releases the lock while inside the wait
249249
* function and reacquire it upon exiting the function.
250250
*
251251
* Example:
@@ -272,7 +272,7 @@ class ConditionVariable : private mbed::NonCopyable<ConditionVariable> {
272272

273273
/** Notify one waiter on this condition variable that a condition changed.
274274
*
275-
* This function will unblock one of the threads waiting for the condition
275+
* This function unblocks one of the threads waiting for the condition
276276
* variable.
277277
*
278278
* @note - The thread calling this function must be the owner of the
@@ -287,7 +287,7 @@ class ConditionVariable : private mbed::NonCopyable<ConditionVariable> {
287287

288288
/** Notify all waiters on this condition variable that a condition changed.
289289
*
290-
* This function will unblock all of the threads waiting for the condition
290+
* This function unblocks all of the threads waiting for the condition
291291
* variable.
292292
*
293293
* @note - The thread calling this function must be the owner of the

0 commit comments

Comments
 (0)