MCPcopy Create free account
hub / github.com/David-Haim/concurrencpp / await_impl

Method await_impl

source/threads/async_condition_variable.cpp:54–59  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

52}
53
54lazy_result<void> async_condition_variable::await_impl(std::shared_ptr<executor> resume_executor, scoped_async_lock& lock) {
55 co_await details::cv_awaiter(*this, lock);
56 assert(!lock.owns_lock());
57 co_await resume_on(resume_executor); // TODO: optimize this when get_current_executor is available
58 co_await lock.lock(resume_executor);
59}
60
61lazy_result<void> async_condition_variable::await(std::shared_ptr<executor> resume_executor, scoped_async_lock& lock) {
62 verify_await_params(resume_executor, lock);

Callers

nothing calls this directly

Calls 3

resume_onFunction · 0.85
owns_lockMethod · 0.80
lockMethod · 0.80

Tested by

no test coverage detected