MCPcopy Create free account
hub / github.com/DFHack/dfhack / runRenderThreadCallbacks

Method runRenderThreadCallbacks

library/modules/DFSDL.cpp:318–328  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

316}
317
318DFHACK_EXPORT void DFHack::runRenderThreadCallbacks() {
319 static decltype(render_cb_queue) local_queue;
320 {
321 std::lock_guard<std::recursive_mutex> l(render_cb_lock);
322 std::swap(local_queue, render_cb_queue);
323 }
324 for (auto& cb : local_queue) {
325 cb();
326 }
327 local_queue.clear();
328}

Callers

nothing calls this directly

Calls 1

clearMethod · 0.45

Tested by

no test coverage detected