From f9d70dcd4d83d3894458ab68a2e6353cb2e7668c Mon Sep 17 00:00:00 2001 From: Christopher Dykes Date: Mon, 28 Aug 2017 18:06:22 -0700 Subject: [PATCH] Revert D5714883: [Folly] Shrink MicroSpinLock.h transitive includes and inline methods Summary: This reverts commit 1744685ff9fa8d3620aef2545c8fe3ebc481df06 bypass-lint Differential Revision: D5714883 fbshipit-source-id: 0cdb5f2cac095a9202cb1310ff8e75e75b4afd74 --- folly/MicroSpinLock.h | 17 ++++++++--------- folly/detail/Sleeper.h | 2 +- 2 files changed, 9 insertions(+), 10 deletions(-) diff --git a/folly/MicroSpinLock.h b/folly/MicroSpinLock.h index 7acf216f..ee2c4420 100644 --- a/folly/MicroSpinLock.h +++ b/folly/MicroSpinLock.h @@ -39,18 +39,17 @@ #include #include -#include -#include +#include +#include +#include #include +#include +#include + #include #include -FOLLY_NAMESPACE_STD_BEGIN -template -class lock_guard; -FOLLY_NAMESPACE_STD_END - namespace folly { /* @@ -87,11 +86,11 @@ struct MicroSpinLock { sleeper.wait(); } } while (!try_lock()); - assert(payload()->load() == LOCKED); + DCHECK(payload()->load() == LOCKED); } void unlock() { - assert(payload()->load() == LOCKED); + CHECK(payload()->load() == LOCKED); payload()->store(FREE, std::memory_order_release); } diff --git a/folly/detail/Sleeper.h b/folly/detail/Sleeper.h index 2d1f2487..c2efad00 100644 --- a/folly/detail/Sleeper.h +++ b/folly/detail/Sleeper.h @@ -21,7 +21,7 @@ * @author Jordan DeLong */ -#include +#include #include #include -- 2.34.1