diff options
author | Andy Schwerin <schwerin@mongodb.com> | 2015-02-27 18:33:28 -0500 |
---|---|---|
committer | Andy Schwerin <schwerin@mongodb.com> | 2015-03-12 17:11:20 -0400 |
commit | 7cd9cf303c824478f0f6d60cadfcc1a25bdb21f2 (patch) | |
tree | ebeec8c3c2dc21359b941d95e2109e355542e65f /src/mongo/dbtests/perftests.cpp | |
parent | 7ee3d124070db157181bc1b24f2b84913957c388 (diff) | |
download | mongo-7cd9cf303c824478f0f6d60cadfcc1a25bdb21f2.tar.gz |
SERVER-17310 Make mongo::mutex a typedef of boost::mutex and remove mongo::scoped_lock.
Diffstat (limited to 'src/mongo/dbtests/perftests.cpp')
-rw-r--r-- | src/mongo/dbtests/perftests.cpp | 11 |
1 files changed, 0 insertions, 11 deletions
diff --git a/src/mongo/dbtests/perftests.cpp b/src/mongo/dbtests/perftests.cpp index 76ae98c56d3..38dfc814d8e 100644 --- a/src/mongo/dbtests/perftests.cpp +++ b/src/mongo/dbtests/perftests.cpp @@ -537,7 +537,6 @@ namespace PerfTests { RWLock lk("testrw"); SimpleMutex m("simptst"); - mongo::mutex mtest("mtest"); boost::mutex mboost; boost::timed_mutex mboost_timed; std::mutex mstd; @@ -554,15 +553,6 @@ namespace PerfTests { c.notify_one(); } }; - class mutexspeed : public B { - public: - string name() { return "mutex"; } - virtual int howLongMillis() { return 500; } - virtual bool showDurStats() { return false; } - void timed() { - mongo::mutex::scoped_lock lk(mtest); - } - }; class boostmutexspeed : public B { public: string name() { return "boost::mutex"; } @@ -1474,7 +1464,6 @@ namespace PerfTests { add< locker_contestedS >(); add< locker_uncontestedS >(); add< NotifyOne >(); - add< mutexspeed >(); add< simplemutexspeed >(); add< boostmutexspeed >(); add< boosttimed_mutexspeed >(); |