Class that acts as a simple wrapper around a std::condition_variable. Used for one process waiting on a certain condition to be met or a timeout, in which case the other process is notified of the action.
Creates a TimedCondition object
The condition object that this class provides a wrapper for.
The mutex to handle thread-safe access
Whether or not the condition has been notified
bool timedWait( |
| ) |
Blocks until the condition is met by calling notify() or until the timeout has expired. Also returns true immediately if the condition has already been notified.
timeout uint64 | The timeout (in milliseconds) to set for the condition. |
true if the condition was met from a call to notify(). false if the timeout has expired.
Unblocks the TimedCondition if it is currently blocked from calling timedWait()