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

@@ -178,6 +178,7 @@ void Identify(SOCKET TCPSock){
}
void TCPServerMain(){
DebugPrintTID();
#ifdef __WIN32
WSADATA wsaData;
if (WSAStartup(514, &wsaData)){

View File

@@ -30,6 +30,7 @@ void Monitor() {
}
[[noreturn]]void Stat(){
DebugPrintTID();
while(true){
Monitor();
std::this_thread::sleep_for(std::chrono::seconds(1));

View File

@@ -56,6 +56,7 @@ void TCPRcv(Client*c){
TCPHandle(c,Buf);
}
void TCPClient(Client*c){
DebugPrintTID();
Assert(c);
if(c->GetTCPSock() == -1){
CI->RemoveClient(c);

View File

@@ -245,6 +245,7 @@ void UDPParser(Client* c, std::string Packet) {
GParser(c, Packet);
}
void LOOP() {
DebugPrintTID();
while (UDPSock != -1) {
for (PacketData* p : DataAcks) {
if (p != nullptr) {