![]() |
Kodi Docs 20.0
Kodi is an open source media player and entertainment hub.
|
#include <Condition.h>
Public Member Functions | |
TightConditionVariable (ConditionVariable &cv, P predicate_) | |
template<typename L > | |
void | wait (L &lock) |
template<typename L , typename Rep , typename Period > | |
bool | wait (L &lock, std::chrono::duration< Rep, Period > duration) |
void | notifyAll () |
void | notify () |
This is a condition variable along with its predicate. This allows the use of a condition variable without the spurious returns since the state being monitored is also part of the condition.
L should implement the Lockable concept
The requirements on P are that it can act as a predicate (that is, I can use it in an 'while(!predicate){...}' where 'predicate' is of type 'P').
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |