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

Function flag_set

library/Crashlog.cpp:29–32  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

27int crashlog_complete = -1;
28
29void flag_set(std::atomic_bool &atom) {
30 atom.store(true);
31 atom.notify_all();
32}
33void flag_wait(std::atomic_bool &atom) {
34 atom.wait(false);
35}

Callers 2

handle_signal_internalFunction · 0.85
dfhack_crashlog_shutdownFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected