From: Christopher Dykes Date: Tue, 29 Aug 2017 01:06:22 +0000 (-0700) Subject: Revert D5714883: [Folly] Shrink MicroSpinLock.h transitive includes and inline methods X-Git-Tag: v2017.09.04.00~18 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=f9d70dcd4d83d3894458ab68a2e6353cb2e7668c;p=folly.git 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 --- 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