summaryrefslogtreecommitdiff
path: root/src/mongo/util/concurrency/spin_lock_test.cpp
diff options
context:
space:
mode:
authorMathias Stearn <mathias@10gen.com>2015-10-12 19:19:17 -0400
committerMathias Stearn <mathias@10gen.com>2015-11-18 18:18:00 -0500
commit18600ed909f739ab1bc3032c2a230aeac1abe1c2 (patch)
treeba24acdecf08c3b8581c41ba4c048b2948de515e /src/mongo/util/concurrency/spin_lock_test.cpp
parent23136883e394b73cbc26f873cd0276779adef3df (diff)
downloadmongo-18600ed909f739ab1bc3032c2a230aeac1abe1c2.tar.gz
SERVER-21542 Optimize spinlock on non-windows systems
Now uses std::atomic_flag rather than pthread_spinlock.
Diffstat (limited to 'src/mongo/util/concurrency/spin_lock_test.cpp')
-rw-r--r--src/mongo/util/concurrency/spin_lock_test.cpp3
1 files changed, 0 insertions, 3 deletions
diff --git a/src/mongo/util/concurrency/spin_lock_test.cpp b/src/mongo/util/concurrency/spin_lock_test.cpp
index 8a2e1f47cec..27bd9e83681 100644
--- a/src/mongo/util/concurrency/spin_lock_test.cpp
+++ b/src/mongo/util/concurrency/spin_lock_test.cpp
@@ -106,9 +106,6 @@ TEST(Concurrency, ConcurrentIncs) {
mongo::unittest::log() << "spinlock ConcurrentIncs time: " << ms << std::endl;
ASSERT_EQUALS(counter, threads * incs);
-#if defined(__linux__)
- ASSERT(SpinLock::isfast());
-#endif
}
} // namespace