MCPcopy Create free account
hub / github.com/emscripten-core/emscripten / __sub_wait

Method __sub_wait

system/lib/libcxx/src/future.cpp:113–123  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

111}
112
113void __assoc_sub_state::__sub_wait(unique_lock<mutex>& __lk) {
114 if (!__is_ready()) {
115 if (__state_ & static_cast<unsigned>(deferred)) {
116 __state_ &= ~static_cast<unsigned>(deferred);
117 __lk.unlock();
118 __execute();
119 } else
120 while (!__is_ready())
121 __cv_.wait(__lk);
122 }
123}
124
125void __assoc_sub_state::__execute() { std::__throw_future_error(future_errc::no_state); }
126

Callers

nothing calls this directly

Calls 2

unlockMethod · 0.45
waitMethod · 0.45

Tested by

no test coverage detected