libcoro
1.0
Coroutine support library for C++20
|
await on a condition More...
#include <condition.h>
Inherits coro::_details::abstract_condition_awaiter.
Public Member Functions | |
condition (T &var, Pred &&pred) | |
constructor More... | |
bool | await_ready () const |
co_await support More... | |
T & | await_resume () const |
co_await support More... | |
bool | await_suspend (std::coroutine_handle<> h) |
co_await support More... | |
T & | wait () |
Synchronous waiting, allows to condition be used in normal function. More... | |
await on a condition
T | type of shared variable to monitor |
Pred | a predicate which tests the condition. The predicate must return true or false and it should test condition related to shared variable |
The coroutine is suspended until the condition is fullfilled.
Definition at line 195 of file condition.h.