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

@@ -3,20 +3,18 @@
#include <thread>
#include <iostream>
[[noreturn]] void loop(){
DebugPrintTID("test loop");
DebugPrintTID();
while(true){
std::cout.flush();
Assert(false);
std::this_thread::sleep_for(std::chrono::milliseconds(600));
}
}
int main(int argc, char* argv[]) {
DebugPrintTID("main");
DebugPrintTID();
#ifdef DEBUG
std::thread t1(loop);
t1.detach();
#endif
Assert(false);
ConsoleInit();
InitServer(argc,argv);
InitConfig();