mirror of
https://github.com/BeamMP/BeamMP-Server.git
synced 2026-04-03 14:26:09 +00:00
Print TIDs in every new thread
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user