diff options
author | Adam Midvidy <amidvidy@gmail.com> | 2015-06-17 10:27:13 -0400 |
---|---|---|
committer | Adam Midvidy <amidvidy@gmail.com> | 2015-06-17 13:32:39 -0400 |
commit | 449e0f2b47e32060433cb6f68d967ea53c8573d1 (patch) | |
tree | 6e857f03a636b34ad8710e0b3e35a9115523483b /src/mongo/dbtests/mock | |
parent | cbc69e7dcb875b35e161875317bca701b48c770c (diff) | |
download | mongo-449e0f2b47e32060433cb6f68d967ea53c8573d1.tar.gz |
SERVER-18723 boost -> stdx for mutex, unique_lock, and lock_guard
Diffstat (limited to 'src/mongo/dbtests/mock')
-rw-r--r-- | src/mongo/dbtests/mock/mock_conn_registry.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/mongo/dbtests/mock/mock_conn_registry.cpp b/src/mongo/dbtests/mock/mock_conn_registry.cpp index 67b27cb2316..ad6cacb760c 100644 --- a/src/mongo/dbtests/mock/mock_conn_registry.cpp +++ b/src/mongo/dbtests/mock/mock_conn_registry.cpp @@ -57,7 +57,7 @@ namespace mongo { } void MockConnRegistry::addServer(MockRemoteDBServer* server) { - boost::lock_guard<boost::mutex> sl(_registryMutex); + stdx::lock_guard<stdx::mutex> sl(_registryMutex); const std::string hostName(server->getServerAddress()); fassert(16533, _registry.count(hostName) == 0); @@ -66,17 +66,17 @@ namespace mongo { } bool MockConnRegistry::removeServer(const std::string& hostName) { - boost::lock_guard<boost::mutex> sl(_registryMutex); + stdx::lock_guard<stdx::mutex> sl(_registryMutex); return _registry.erase(hostName) == 1; } void MockConnRegistry::clear() { - boost::lock_guard<boost::mutex> sl(_registryMutex); + stdx::lock_guard<stdx::mutex> sl(_registryMutex); _registry.clear(); } MockDBClientConnection* MockConnRegistry::connect(const std::string& connStr) { - boost::lock_guard<boost::mutex> sl(_registryMutex); + stdx::lock_guard<stdx::mutex> sl(_registryMutex); fassert(16534, _registry.count(connStr) == 1); return new MockDBClientConnection(_registry[connStr], true); } |