mirror of
https://github.com/BeamMP/BeamMP-Server.git
synced 2026-04-05 23:36:23 +00:00
Print TIDs in every new thread
This commit is contained in:
@@ -178,6 +178,7 @@ void Identify(SOCKET TCPSock){
|
||||
}
|
||||
|
||||
void TCPServerMain(){
|
||||
DebugPrintTID();
|
||||
#ifdef __WIN32
|
||||
WSADATA wsaData;
|
||||
if (WSAStartup(514, &wsaData)){
|
||||
|
||||
@@ -30,6 +30,7 @@ void Monitor() {
|
||||
}
|
||||
|
||||
[[noreturn]]void Stat(){
|
||||
DebugPrintTID();
|
||||
while(true){
|
||||
Monitor();
|
||||
std::this_thread::sleep_for(std::chrono::seconds(1));
|
||||
|
||||
@@ -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);
|
||||
|
||||
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user