◆ notify()
void original::condition::notify |
( |
| ) |
|
|
inlineoverridevirtual |
◆ notifyAll()
void original::condition::notifyAll |
( |
| ) |
|
|
inlineoverridevirtual |
◆ wait() [1/3]
Waits for notification while holding the mutex.
- Parameters
-
mutex | Locked mutex to wait on |
- Exceptions
-
- Note
- The mutex must be locked by the calling thread
Implements original::conditionBase.
◆ wait() [2/3]
Waits for notification while holding the mutex.
- Parameters
-
mutex | Locked mutex to wait on |
- Exceptions
-
- Note
- The mutex must be locked by the calling thread
Implements original::conditionBase.
◆ wait() [3/3]
Waits until predicate becomes true.
- Template Parameters
-
Pred | Predicate type (must be callable and return bool) |
- Parameters
-
mutex | Locked mutex to wait on |
predicate | Condition predicate to check |
- Exceptions
-
- Note
- Implements the "wait with predicate" pattern to avoid spurious wakeups
◆ waitFor() [1/3]
Waits with timeout until predicate becomes true.
- Template Parameters
-
Pred | Predicate type (must be callable and return bool) |
- Parameters
-
mutex | Locked mutex to wait on |
d | Maximum duration to wait |
predicate | Condition predicate to check |
- Returns
- true if predicate became true, false if timeout occurred
- Exceptions
-
◆ waitFor() [2/3]
Waits for notification with timeout.
- Parameters
-
mutex | Locked mutex to wait on |
d | Maximum duration to wait |
- Returns
- true if notified, false if timeout occurred
- Exceptions
-
- Note
- The mutex must be locked by the calling thread
Implements original::conditionBase.
◆ waitFor() [3/3]
Waits for notification with timeout.
- Parameters
-
mutex | Locked mutex to wait on |
d | Maximum duration to wait |
- Returns
- true if notified, false if timeout occurred
- Exceptions
-
- Note
- The mutex must be locked by the calling thread
Implements original::conditionBase.
The documentation for this class was generated from the following file: