Fix some copyright lines in folly/detail/ and folly/test/
[folly.git] / folly / detail / MemoryIdler.h
index fcbde0027a4ee0101bb6f9fe210a56891d25fb71..3c987cc9223340f93279e7d722283e5813912886 100644 (file)
@@ -1,5 +1,5 @@
 /*
 /*
- * Copyright 2017 Facebook, Inc.
+ * Copyright 2014-present Facebook, Inc.
  *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
  *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
 #include <atomic>
 #include <chrono>
 
 #include <atomic>
 #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/detail/Futex.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 {};
-
-}
+#include <folly/hash/Hash.h>
+#include <folly/synchronization/AtomicStruct.h>
+#include <folly/system/ThreadId.h>
 
 namespace folly { namespace detail {
 
 
 namespace folly { namespace detail {
 
@@ -150,4 +139,5 @@ struct MemoryIdler {
   }
 };
 
   }
 };
 
-}} // namespace folly::detail
+} // namespace detail
+} // namespace folly