diff options
author | Justin Berger <j.david.berger@gmail.com> | 2017-08-21 18:22:52 (GMT) |
---|---|---|
committer | Justin Berger <j.david.berger@gmail.com> | 2017-11-01 17:32:11 (GMT) |
commit | f5d2988ea7cc60778dbaa21860aad264c7aa7a81 (patch) | |
tree | 6aa3b2db4343953cc940c298dfd3c6538c6ad4b3 /Source/cmServer.h | |
parent | 2636d86ce2f45f06bdcf4cb60c15df55838a3aa7 (diff) | |
download | CMake-f5d2988ea7cc60778dbaa21860aad264c7aa7a81.zip CMake-f5d2988ea7cc60778dbaa21860aad264c7aa7a81.tar.gz CMake-f5d2988ea7cc60778dbaa21860aad264c7aa7a81.tar.bz2 |
server: Swapped to cm_thread impl
Diffstat (limited to 'Source/cmServer.h')
-rw-r--r-- | Source/cmServer.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Source/cmServer.h b/Source/cmServer.h index 15fd2ba..6e46f8c 100644 --- a/Source/cmServer.h +++ b/Source/cmServer.h @@ -5,6 +5,7 @@ #include "cmConfigure.h" // IWYU pragma: keep #include "cm_jsoncpp_value.h" +#include "cm_thread.hxx" #include "cm_uv.h" #include <memory> // IWYU pragma: keep @@ -61,7 +62,7 @@ public: void OnDisconnect(cmConnection* pConnection); protected: - mutable uv_rwlock_t ConnectionsMutex; + mutable cm::shared_mutex ConnectionsMutex; std::vector<std::unique_ptr<cmConnection>> Connections; bool ServeThreadRunning = false; |