Loading CMakeLists.txt +4 Changes for CMakeLists.txt: 4 added lines, 0 removed lines. Original line number Diff line number Diff line Loading @@ -23,6 +23,10 @@ if(${CMAKE_HOST_SYSTEM_NAME} STREQUAL "Linux") ) endif() if(MSVC) set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} /std:c++17") endif(MSVC) if(${CMAKE_SYSTEM_NAME} MATCHES "Windows") set(CMAKE_INSTALL_PREFIX "c:/Program Files") endif() Loading src/event/iocp.cpp +1 −5 Changes for src/event/iocp.cpp: 1 added line, 5 removed lines. Original line number Diff line number Diff line Loading @@ -109,9 +109,7 @@ namespace netplus { } void RemoveFromClientList(client* pClientContext) { std::lock(g_ClientContextMutex, pClientContext->cltmtx); std::lock_guard<std::mutex> lock(g_ClientContextMutex, std::adopt_lock); std::lock_guard<std::mutex> lock2(pClientContext->cltmtx, std::adopt_lock); std::scoped_lock lock(g_ClientContextMutex, pClientContext->cltmtx); //Remove the client context from the list auto it = std::find(g_ClientContext.begin(), g_ClientContext.end(), pClientContext); Loading @@ -121,8 +119,6 @@ namespace netplus { delete pClientContext; pClientContext = nullptr; } } void AcceptConnection(LPFN_ACCEPTEX lpfnAcceptEx, int tid, ULONG_PTR args) { Loading Loading
CMakeLists.txt +4 Changes for CMakeLists.txt: 4 added lines, 0 removed lines. Original line number Diff line number Diff line Loading @@ -23,6 +23,10 @@ if(${CMAKE_HOST_SYSTEM_NAME} STREQUAL "Linux") ) endif() if(MSVC) set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} /std:c++17") endif(MSVC) if(${CMAKE_SYSTEM_NAME} MATCHES "Windows") set(CMAKE_INSTALL_PREFIX "c:/Program Files") endif() Loading
src/event/iocp.cpp +1 −5 Changes for src/event/iocp.cpp: 1 added line, 5 removed lines. Original line number Diff line number Diff line Loading @@ -109,9 +109,7 @@ namespace netplus { } void RemoveFromClientList(client* pClientContext) { std::lock(g_ClientContextMutex, pClientContext->cltmtx); std::lock_guard<std::mutex> lock(g_ClientContextMutex, std::adopt_lock); std::lock_guard<std::mutex> lock2(pClientContext->cltmtx, std::adopt_lock); std::scoped_lock lock(g_ClientContextMutex, pClientContext->cltmtx); //Remove the client context from the list auto it = std::find(g_ClientContext.begin(), g_ClientContext.end(), pClientContext); Loading @@ -121,8 +119,6 @@ namespace netplus { delete pClientContext; pClientContext = nullptr; } } void AcceptConnection(LPFN_ACCEPTEX lpfnAcceptEx, int tid, ULONG_PTR args) { Loading