리눅스에서 테스트 해볼 것

This commit is contained in:
2025-04-30 15:11:33 +09:00
parent cebd6bb9e9
commit cf8166f41c
2 changed files with 11 additions and 9 deletions

View File

@@ -59,10 +59,12 @@ int main() {
spdlog::info("Waiting for connection...");
sock.accept(clientSock, clientAddr);
// threadPool.enqueueJob(_TCPClient, std::move(clientSock), clientAddr);
threadPool.enqueueJob(_TCPClient, std::move(clientSock), clientAddr);
Chattr::Thread thread_(_TCPClient, std::move(clientSock), clientAddr);
thread_.detach();
Sleep(10000000);
}
}