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

Function dfhack_crashlog_thread

library/Crashlog.cpp:141–150  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

139}
140
141void dfhack_crashlog_thread() {
142 // Wait for activation signal
143 flag_wait(crashlog_ready);
144 if (shutdown.load()) // Shutting down gracefully, end thread.
145 return;
146
147 dfhack_save_crashlog();
148 signal_crashlog_complete();
149 std::quick_exit(1);
150}
151
152std::terminate_handler term_handler = nullptr;
153

Callers

nothing calls this directly

Calls 4

flag_waitFunction · 0.85
dfhack_save_crashlogFunction · 0.85
signal_crashlog_completeFunction · 0.85
loadMethod · 0.45

Tested by

no test coverage detected