style: Format source code and support grouping client

This commit is contained in:
yuanyuanxiang
2025-10-15 04:32:59 +08:00
parent 77087d2e06
commit 6b81ad1f81
244 changed files with 43052 additions and 42562 deletions

View File

@@ -18,16 +18,19 @@ public:
SOCKET* GetSocket(DWORD index,BOOL del=FALSE);
CRITICAL_SECTION m_cs;
int Threads;
void AddThread(int n = 1) {
void AddThread(int n = 1)
{
CAutoLock L(m_cs);
Threads += n;
}
void Wait() {
void Wait()
{
while (GetThread())
Sleep(50);
}
int GetThread() {
CAutoLock L(m_cs);
int GetThread()
{
CAutoLock L(m_cs);
return Threads;
}
};