Print TIDs in every new thread

This commit is contained in:
Lion Kortlepel
2020-11-03 10:22:49 +01:00
parent 2ec65d5b84
commit b2166402a2
11 changed files with 16 additions and 9 deletions

View File

@@ -5,8 +5,8 @@
#include <string>
#include <iostream>
void InitLog();
#define DebugPrintTID(what) DebugPrintTIDInternal(what, __func__)
void DebugPrintTIDInternal(const std::string& what, const std::string& func); // prints the current thread id in debug mode, to make tracing of crashes and asserts easier
#define DebugPrintTID() DebugPrintTIDInternal(__func__)
void DebugPrintTIDInternal(const std::string& func); // prints the current thread id in debug mode, to make tracing of crashes and asserts easier
void ConsoleOut(const std::string& msg);
void QueueAbort();
void except(const std::string& toPrint);