libcoro  1.0
Coroutine support library for C++20

◆ condition_sync_wait()

template<typename T , typename Pred >
void coro::condition_sync_wait ( T &  var,
Pred &&  pred 
)

Perform synchronous waiting with condition.

Parameters
varshared variable
preda 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.