MCPcopy Create free account
hub / github.com/Vhonowslend/StreamFX-Public / wait

Method wait

source/util/util-threadpool.cpp:83–89  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

81}
82
83void streamfx::util::threadpool::task::wait()
84{
85 std::unique_lock<std::mutex> ul(_lock);
86 if (!_cancelled && !_completed && !_failed) {
87 _status_changed.wait(ul, [this]() { return this->is_completed() || this->is_cancelled() || this->has_failed(); });
88 }
89}
90
91void streamfx::util::threadpool::task::await_completion()
92{

Callers 1

~configurationMethod · 0.80

Calls 3

is_completedMethod · 0.95
is_cancelledMethod · 0.95
has_failedMethod · 0.95

Tested by

no test coverage detected