MCPcopy Create free account
hub / github.com/Audio4Linux/JDSP4Linux / wait

Function wait

3rdparty/asyncplusplus/include/async++/task_base.h:145–153  ·  view source on GitHub ↗

Wait for the task to finish executing

Source from the content-addressed store, hash-verified

143
144 // Wait for the task to finish executing
145 task_state wait()
146 {
147 task_state s = state.load(std::memory_order_acquire);
148 if (!is_finished(s)) {
149 wait_for_task(this);
150 s = state.load(std::memory_order_relaxed);
151 }
152 return s;
153 }
154};
155
156// Deleter for task_ptr

Callers 1

~local_taskMethod · 0.85

Calls 3

is_finishedFunction · 0.85
wait_for_taskFunction · 0.85
loadMethod · 0.45

Tested by

no test coverage detected