summaryrefslogtreecommitdiff
path: root/src/mongo/watchdog/watchdog.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/mongo/watchdog/watchdog.h')
-rw-r--r--src/mongo/watchdog/watchdog.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/mongo/watchdog/watchdog.h b/src/mongo/watchdog/watchdog.h
index bd29038a12a..289d2dadac9 100644
--- a/src/mongo/watchdog/watchdog.h
+++ b/src/mongo/watchdog/watchdog.h
@@ -35,8 +35,8 @@
#include <vector>
#include "mongo/platform/atomic_word.h"
-#include "mongo/stdx/condition_variable.h"
-#include "mongo/stdx/mutex.h"
+#include "mongo/platform/condition_variable.h"
+#include "mongo/platform/mutex.h"
#include "mongo/stdx/thread.h"
#include "mongo/util/duration.h"
@@ -204,7 +204,7 @@ private:
stdx::thread _thread;
// Lock to protect _state and control _thread
- stdx::mutex _mutex;
+ Mutex _mutex = MONGO_MAKE_LATCH("WatchdogPeriodicThread::_mutex");
stdx::condition_variable _condvar;
};
@@ -367,7 +367,7 @@ private:
};
// Lock to protect _state and control _thread
- stdx::mutex _mutex;
+ Mutex _mutex = MONGO_MAKE_LATCH("WatchdogMonitor::_mutex");
// State of watchdog
State _state{State::kNotStarted};