summaryrefslogtreecommitdiff
path: root/src/node_watchdog.h
diff options
context:
space:
mode:
authorAnna Henningsen <anna@addaleax.net>2016-08-01 12:51:01 +0200
committerAnna Henningsen <anna@addaleax.net>2016-08-11 18:42:37 +0200
commit84f07782470dd515bfc8fcc3f0c70e03848eb593 (patch)
tree991b54cbd1cfbacb27356cc898d5075698b8acf6 /src/node_watchdog.h
parentba3ccec040fbe1346428f06d87752fd0874b5741 (diff)
downloadnode-new-84f07782470dd515bfc8fcc3f0c70e03848eb593.tar.gz
src: use RAII for mutexes in node_watchdog.cc
PR-URL: https://github.com/nodejs/node/pull/7933 Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Diffstat (limited to 'src/node_watchdog.h')
-rw-r--r--src/node_watchdog.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/node_watchdog.h b/src/node_watchdog.h
index d56b7624de..43842147f9 100644
--- a/src/node_watchdog.h
+++ b/src/node_watchdog.h
@@ -5,6 +5,7 @@
#include "v8.h"
#include "uv.h"
+#include "node_mutex.h"
#include <vector>
#ifdef __POSIX__
@@ -75,8 +76,8 @@ class SigintWatchdogHelper {
int start_stop_count_;
- uv_mutex_t mutex_;
- uv_mutex_t list_mutex_;
+ Mutex mutex_;
+ Mutex list_mutex_;
std::vector<SigintWatchdog*> watchdogs_;
bool has_pending_signal_;