summaryrefslogtreecommitdiffstats
path: root/Source/cmServer.h
diff options
context:
space:
mode:
authorJustin Berger <j.david.berger@gmail.com>2017-07-20 04:04:13 (GMT)
committerBrad King <brad.king@kitware.com>2017-08-31 19:35:44 (GMT)
commit882dcef8e02e432e6469b7fca38aff212d1541ab (patch)
treecef553d0392da5c8543a27faee7547d674934dc0 /Source/cmServer.h
parent7ef28843618519c222806a0df82ed8f87ad2ca0c (diff)
downloadCMake-882dcef8e02e432e6469b7fca38aff212d1541ab.zip
CMake-882dcef8e02e432e6469b7fca38aff212d1541ab.tar.gz
CMake-882dcef8e02e432e6469b7fca38aff212d1541ab.tar.bz2
server: Made connections in a server have a mutex to avoid use after frees
Diffstat (limited to 'Source/cmServer.h')
-rw-r--r--Source/cmServer.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/Source/cmServer.h b/Source/cmServer.h
index cb7df10..d8f73c1 100644
--- a/Source/cmServer.h
+++ b/Source/cmServer.h
@@ -61,6 +61,7 @@ public:
void OnDisconnect(cmConnection* pConnection);
protected:
+ mutable uv_rwlock_t ConnectionsMutex;
std::vector<std::unique_ptr<cmConnection>> Connections;
bool ServeThreadRunning = false;