summaryrefslogtreecommitdiff
path: root/src/mongo/dbtests/perftests.cpp
diff options
context:
space:
mode:
authorAndrew Morrow <acm@mongodb.com>2015-06-23 22:27:18 -0400
committerAndrew Morrow <acm@mongodb.com>2015-06-30 12:16:56 -0400
commitd879ba7b97b52e7f54bd93d0fdc147b127f87ece (patch)
treeb915369e2b6ae95fff846aed4656a5701dd09ad4 /src/mongo/dbtests/perftests.cpp
parent6abd1d0e9cdc691e6daf30ce3316ffb820b9bb70 (diff)
downloadmongo-d879ba7b97b52e7f54bd93d0fdc147b127f87ece.tar.gz
SERVER-19099 Enforce polyfill usage via lint
Diffstat (limited to 'src/mongo/dbtests/perftests.cpp')
-rw-r--r--src/mongo/dbtests/perftests.cpp16
1 files changed, 8 insertions, 8 deletions
diff --git a/src/mongo/dbtests/perftests.cpp b/src/mongo/dbtests/perftests.cpp
index d2e0a8009e6..5021eff0558 100644
--- a/src/mongo/dbtests/perftests.cpp
+++ b/src/mongo/dbtests/perftests.cpp
@@ -605,10 +605,10 @@ public:
RWLock lk("testrw");
SimpleMutex m;
-boost::mutex mboost;
-boost::timed_mutex mboost_timed;
-std::mutex mstd;
-std::timed_mutex mstd_timed;
+boost::mutex mboost; // NOLINT
+boost::timed_mutex mboost_timed; // NOLINT
+std::mutex mstd; // NOLINT
+std::timed_mutex mstd_timed; // NOLINT
SpinLock s;
stdx::condition_variable c;
@@ -639,7 +639,7 @@ public:
return false;
}
void timed() {
- boost::lock_guard<boost::mutex> lk(mboost);
+ boost::lock_guard<boost::mutex> lk(mboost); // NOLINT
}
};
class boosttimed_mutexspeed : public B {
@@ -654,7 +654,7 @@ public:
return false;
}
void timed() {
- boost::lock_guard<boost::timed_mutex> lk(mboost_timed);
+ boost::lock_guard<boost::timed_mutex> lk(mboost_timed); // NOLINT
}
};
class simplemutexspeed : public B {
@@ -685,7 +685,7 @@ public:
return false;
}
void timed() {
- std::lock_guard<std::mutex> lk(mstd);
+ std::lock_guard<std::mutex> lk(mstd); // NOLINT
}
};
class stdtimed_mutexspeed : public B {
@@ -700,7 +700,7 @@ public:
return false;
}
void timed() {
- std::lock_guard<std::timed_mutex> lk(mstd_timed);
+ std::lock_guard<std::timed_mutex> lk(mstd_timed); // NOLINT
}
};