summaryrefslogtreecommitdiff
path: root/src/mongo/dbtests/perftests.cpp
diff options
context:
space:
mode:
authorAndrew Morrow <acm@mongodb.com>2015-06-18 15:02:54 -0400
committerAndrew Morrow <acm@mongodb.com>2015-06-19 22:51:28 -0400
commit1178eff1ddf60a7dac3a8cd71e2fdd278aa01b52 (patch)
treeee3096045eb4d2e4f69d57ef85c66b3be69e4302 /src/mongo/dbtests/perftests.cpp
parent4b5fa5fc711e4cf94291665575fd1c742ad3e7c3 (diff)
downloadmongo-1178eff1ddf60a7dac3a8cd71e2fdd278aa01b52.tar.gz
SERVER-19041 Simplify SimpleMutex
Diffstat (limited to 'src/mongo/dbtests/perftests.cpp')
-rw-r--r--src/mongo/dbtests/perftests.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mongo/dbtests/perftests.cpp b/src/mongo/dbtests/perftests.cpp
index 8eec55fe913..ba0004926b7 100644
--- a/src/mongo/dbtests/perftests.cpp
+++ b/src/mongo/dbtests/perftests.cpp
@@ -536,7 +536,7 @@ namespace PerfTests {
#endif
RWLock lk("testrw");
- SimpleMutex m("simptst");
+ SimpleMutex m;
boost::mutex mboost;
boost::timed_mutex mboost_timed;
std::mutex mstd;
@@ -577,7 +577,7 @@ namespace PerfTests {
virtual int howLongMillis() { return 500; }
virtual bool showDurStats() { return false; }
void timed() {
- SimpleMutex::scoped_lock lk(m);
+ stdx::lock_guard<SimpleMutex> lk(m);
}
};