Commit 1374bb3a authored by Yedidya Feldblum's avatar Yedidya Feldblum Committed by Facebook Github Bot

Remove gcc-v4.7 support from MemoryIdler

Summary:
[Folly] Remove gcc-v4.7 support from `MemoryIdler`.

As of gcc-v4.8, `std::is_trivial<std::chrono::duration<Rep, Period>>::value` holds. We no longer need any extra support.

Reviewed By: meyering

Differential Revision: D6673517

fbshipit-source-id: f28b2d126f113547ebf36c85f9fa37a5d944d65b
parent 7462c4c2
......@@ -19,22 +19,11 @@
#include <atomic>
#include <chrono>
#include <folly/Traits.h>
#include <folly/detail/Futex.h>
#include <folly/hash/Hash.h>
#include <folly/synchronization/AtomicStruct.h>
#include <folly/system/ThreadId.h>
namespace folly {
// gcc 4.7 doesn't do std::is_trivial correctly, override so we can use
// AtomicStruct<duration>
template <>
struct IsTriviallyCopyable<std::chrono::steady_clock::duration>
: std::true_type {};
} // namespace folly
namespace folly { namespace detail {
/// MemoryIdler provides helper routines that allow routines to return
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment