Added thread names to logs

This commit is contained in:
Lion Kortlepel
2020-11-08 02:28:40 +01:00
parent a42ab67d2f
commit 437a654b90
2 changed files with 36 additions and 8 deletions

View File

@@ -6,8 +6,8 @@
#include <mutex>
#include <string>
void InitLog();
#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
#define DebugPrintTID() DebugPrintTIDInternal(__func__, false)
void DebugPrintTIDInternal(const std::string& func, bool overwrite = true); // 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);