summaryrefslogtreecommitdiffstats
path: root/Source/cmServer.h
diff options
context:
space:
mode:
authorJustin Berger <j.david.berger@gmail.com>2017-07-23 18:31:13 (GMT)
committerBrad King <brad.king@kitware.com>2017-11-29 21:36:31 (GMT)
commit1e9b7d3ceb882d3feb59324b6e55d40cc795576b (patch)
treef1b9dbb8189f8b26ca99cc6ce91e76ccfab44009 /Source/cmServer.h
parentf43b9219c738944fea33043b1985696c862c84ac (diff)
downloadCMake-1e9b7d3ceb882d3feb59324b6e55d40cc795576b.zip
CMake-1e9b7d3ceb882d3feb59324b6e55d40cc795576b.tar.gz
CMake-1e9b7d3ceb882d3feb59324b6e55d40cc795576b.tar.bz2
server: Switched to a auto model for handles
Diffstat (limited to 'Source/cmServer.h')
-rw-r--r--Source/cmServer.h10
1 files changed, 6 insertions, 4 deletions
diff --git a/Source/cmServer.h b/Source/cmServer.h
index 6e46f8c..ca37ce2 100644
--- a/Source/cmServer.h
+++ b/Source/cmServer.h
@@ -8,6 +8,8 @@
#include "cm_thread.hxx"
#include "cm_uv.h"
+#include "cmUVHandlePtr.h"
+
#include <memory> // IWYU pragma: keep
#include <string>
#include <vector>
@@ -58,7 +60,7 @@ public:
virtual bool OnSignal(int signum);
uv_loop_t* GetLoop();
-
+ void Close();
void OnDisconnect(cmConnection* pConnection);
protected:
@@ -67,7 +69,7 @@ protected:
bool ServeThreadRunning = false;
uv_thread_t ServeThread;
- uv_async_t ShutdownSignal;
+ cm::uv_async_ptr ShutdownSignal;
#ifndef NDEBUG
public:
// When the server starts it will mark down it's current thread ID,
@@ -80,8 +82,8 @@ protected:
uv_loop_t Loop;
- uv_signal_t SIGINTHandler;
- uv_signal_t SIGHUPHandler;
+ cm::uv_signal_ptr SIGINTHandler;
+ cm::uv_signal_ptr SIGHUPHandler;
};
class cmServer : public cmServerBase