Loading src/event/iocp.cpp +2 −2 Changes for src/event/iocp.cpp: 2 added lines, 2 removed lines. Original line number Diff line number Diff line Loading @@ -90,8 +90,8 @@ namespace netplus { void AddToClientList(client* pClientContext) { std::lock<std::mutex>(g_ClientContextMutex, pClientContext->cltmtx); std::lock_guard<std::mutex> lock(g_ClientContextMutex); std::lock_guard<std::mutex> clock(pClientContext->cltmtx); std::unique_lock <std::mutex> lock(g_ClientContextMutex); std::unique_lock <std::mutex> clock(pClientContext->cltmtx); g_ClientContext.push_back(pClientContext); } Loading Loading
src/event/iocp.cpp +2 −2 Changes for src/event/iocp.cpp: 2 added lines, 2 removed lines. Original line number Diff line number Diff line Loading @@ -90,8 +90,8 @@ namespace netplus { void AddToClientList(client* pClientContext) { std::lock<std::mutex>(g_ClientContextMutex, pClientContext->cltmtx); std::lock_guard<std::mutex> lock(g_ClientContextMutex); std::lock_guard<std::mutex> clock(pClientContext->cltmtx); std::unique_lock <std::mutex> lock(g_ClientContextMutex); std::unique_lock <std::mutex> clock(pClientContext->cltmtx); g_ClientContext.push_back(pClientContext); } Loading