libcoro
1.0
Coroutine support library for C++20
coro
aggregator
aggregator
aggregator
aggregator
await_suspend_valid_return_value
awaitable
condition_sync_wait
container_type
coroutine
iterator_type
notify_condition
notify_condition
pointer_value
scheduler
standard_allocator
thread_pool
◆
condition_sync_wait()
template<typename T , typename Pred >
void coro::condition_sync_wait
(
T &
var
,
Pred &&
pred
)
Perform synchronous waiting with condition.
Parameters
var
shared variable
pred
a predicate testing condition, the function blocks execution, if the condition is not true.
Note
Not MT Safe. The predicate must use proper synchronization.
See also
condition
Definition at line
331
of file
condition.h
.
Generated on Fri Aug 2 2024 15:51:49 for libcoro by
1.9.1