fix getch spin

This commit is contained in:
Lion Kortlepel
2020-11-17 23:10:19 +01:00
parent 04de729d7c
commit a78f65b274
2 changed files with 12 additions and 3 deletions

View File

@@ -10,6 +10,7 @@
#include <mutex>
#include <sstream>
#include <thread>
#include <unistd.h>
#include <unordered_map>
static RWMutex ThreadNameMapMutex;
@@ -94,7 +95,7 @@ void DebugPrintTIDInternal(const std::string& func, bool overwrite) {
#ifdef DEBUG
std::scoped_lock Guard(LogLock);
std::stringstream Print;
Print << "(debug build) Thread '" << std::this_thread::get_id() << "' is " << func << "\n";
Print << "(debug build) Thread '" << std::this_thread::get_id() << "' / '" << gettid() << "' is " << func << "\n";
ConsoleOut(Print.str());
#endif // DEBUG
}