summaryrefslogtreecommitdiff
path: root/src/mongo/client/connection_string.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/mongo/client/connection_string.h')
-rw-r--r--src/mongo/client/connection_string.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/mongo/client/connection_string.h b/src/mongo/client/connection_string.h
index 29b77ecf9ab..493c916528f 100644
--- a/src/mongo/client/connection_string.h
+++ b/src/mongo/client/connection_string.h
@@ -37,7 +37,7 @@
#include "mongo/base/status_with.h"
#include "mongo/base/string_data.h"
#include "mongo/bson/util/builder.h"
-#include "mongo/stdx/mutex.h"
+#include "mongo/platform/mutex.h"
#include "mongo/util/assert_util.h"
#include "mongo/util/net/hostandport.h"
@@ -153,12 +153,12 @@ public:
};
static void setConnectionHook(ConnectionHook* hook) {
- stdx::lock_guard<stdx::mutex> lk(_connectHookMutex);
+ stdx::lock_guard<Latch> lk(_connectHookMutex);
_connectHook = hook;
}
static ConnectionHook* getConnectionHook() {
- stdx::lock_guard<stdx::mutex> lk(_connectHookMutex);
+ stdx::lock_guard<Latch> lk(_connectHookMutex);
return _connectHook;
}
@@ -190,7 +190,7 @@ private:
std::string _string;
std::string _setName;
- static stdx::mutex _connectHookMutex;
+ static Mutex _connectHookMutex;
static ConnectionHook* _connectHook;
};