diff options
author | Anna Henningsen <anna@addaleax.net> | 2016-08-01 12:51:01 +0200 |
---|---|---|
committer | Anna Henningsen <anna@addaleax.net> | 2016-08-11 18:42:37 +0200 |
commit | 84f07782470dd515bfc8fcc3f0c70e03848eb593 (patch) | |
tree | 991b54cbd1cfbacb27356cc898d5075698b8acf6 /src/node_watchdog.h | |
parent | ba3ccec040fbe1346428f06d87752fd0874b5741 (diff) | |
download | node-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.h | 5 |
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_; |