diff options
Diffstat (limited to 'src/thread.h')
-rw-r--r-- | src/thread.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/thread.h b/src/thread.h index f45694930..f2a47e7bf 100644 --- a/src/thread.h +++ b/src/thread.h @@ -11,6 +11,7 @@ #define THREAD_H #include "debug.h" +#include "crashlog.h" #include <system_error> #include <thread> @@ -47,6 +48,7 @@ inline bool StartNewThread(std::thread *thr, const char *name, TFn&& _Fx, TArgs& try { std::thread t([] (const char *name, TFn&& F, TArgs&&... A) { SetCurrentThreadName(name); + CrashLog::InitThread(); try { /* Call user function with the given arguments. */ F(A...); |