summaryrefslogtreecommitdiff
path: root/src/crashlog.h
diff options
context:
space:
mode:
authorMichael Lutz <michi@icosahedron.de>2021-03-13 21:34:51 +0100
committerMichael Lutz <michi@icosahedron.de>2021-03-13 22:09:05 +0100
commit13011e00c6330e6d745f319766574d2cd78a1162 (patch)
treed6e7c2494036e39453705951785e2b85253ac741 /src/crashlog.h
parent062eeb9810b1c222cb9b0cb331041c0934e49682 (diff)
downloadopenttd-13011e00c6330e6d745f319766574d2cd78a1162.tar.xz
Fix #8860: [Win32] Crashlog window wasn't reliably shown for crashes not on the main thread.
Diffstat (limited to 'src/crashlog.h')
-rw-r--r--src/crashlog.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/crashlog.h b/src/crashlog.h
index 7f1ff47ed..7d15c3512 100644
--- a/src/crashlog.h
+++ b/src/crashlog.h
@@ -114,6 +114,12 @@ public:
*/
static void InitialiseCrashLog();
+ /**
+ * Prepare crash log handler for a newly started thread.
+ * @note must be implemented by all implementers of CrashLog.
+ */
+ static void InitThread();
+
static void SetErrorMessage(const char *message);
static void AfterCrashLogCleanup();
};