#include <chrono>
#include <folly/AtomicStruct.h>
-#include <folly/Hash.h>
-#include <folly/ThreadId.h>
#include <folly/Traits.h>
#include <folly/detail/Futex.h>
+#include <folly/hash/Hash.h>
+#include <folly/system/ThreadId.h>
namespace folly {
struct IsTriviallyCopyable<std::chrono::steady_clock::duration>
: std::true_type {};
-}
+} // namespace folly
namespace folly { namespace detail {
/// (1 + timeoutVariationFraction), to smooth out the behavior in a
/// system with bursty requests. The default is to wait up to 50%
/// extra, so on average 25% extra
- template <template <typename> class Atom,
- typename Clock = std::chrono::steady_clock>
+ template <
+ template <typename> class Atom,
+ typename Clock = std::chrono::steady_clock>
static bool futexWait(
Futex<Atom>& fut,
uint32_t expected,
uint32_t waitMask = -1,
- typename Clock::duration idleTimeout
- = defaultIdleTimeout.load(std::memory_order_acquire),
+ typename Clock::duration idleTimeout =
+ defaultIdleTimeout.load(std::memory_order_acquire),
size_t stackToRetain = kDefaultStackToRetain,
float timeoutVariationFrac = 0.5) {
}
};
-}} // namespace folly::detail
+} // namespace detail
+} // namespace folly