MySQL 9.1.0
Source Code Documentation
|
Monitor can be waited for. More...
#include <monitor.h>
Public Member Functions | |
template<class F > | |
auto | serialize_with_cv (F f) const |
template<class Rep , class Period , class Pred > | |
auto | wait_for (const std::chrono::duration< Rep, Period > &rel_time, Pred pred) |
wait_for time or pred is true. More... | |
template<class Pred > | |
auto | wait (Pred pred) const |
Public Member Functions inherited from Monitor< T > | |
Monitor (T t) | |
template<class F > | |
auto | operator() (F f) const |
Private Attributes | |
std::condition_variable | cv_ |
Additional Inherited Members | |
Protected Attributes inherited from Monitor< T > | |
T | t_ |
std::mutex | mtx_ |
Monitor can be waited for.
wraps T by with Notifyable to add '.notify_one' to T.
|
inline |
|
inline |
wait_for time or pred is true.
rel_time | time to wait max |
pred | invocable that receives the monitored T |
|
mutableprivate |