Fix copyright lines for Bits.h and move BitsBenchmark.cpp
[folly.git] / folly / experimental / test / LockFreeRingBufferTest.cpp
index edd666b53f4f5986ae6042ee8e9efc89fd867fe3..ee4a9475994dbcefcd28dbdb4175db2d906d637e 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright 2016 Facebook, Inc.
+ * Copyright 2017 Facebook, Inc.
  *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
 #include <iostream>
 #include <thread>
 
-#include <folly/detail/Futex.h>
 #include <folly/experimental/LockFreeRingBuffer.h>
-#include <folly/test/DeterministicSchedule.h>
 #include <folly/portability/GTest.h>
+#include <folly/test/DeterministicSchedule.h>
 
 namespace folly {
 
@@ -93,7 +92,7 @@ TEST(LockFreeRingBuffer, readsCanBlock) {
 }
 
 // expose the cursor raw value via a wrapper type
-template<typename T, template<typename> class Atom>
+template <typename T, template <typename> class Atom>
 uint64_t value(const typename LockFreeRingBuffer<T, Atom>::Cursor& rbcursor) {
   typedef typename LockFreeRingBuffer<T,Atom>::Cursor RBCursor;
 
@@ -106,7 +105,7 @@ uint64_t value(const typename LockFreeRingBuffer<T, Atom>::Cursor& rbcursor) {
   return ExposedCursor(rbcursor).value();
 }
 
-template<template<typename> class Atom>
+template <template <typename> class Atom>
 void runReader(
     LockFreeRingBuffer<int, Atom>& rb, std::atomic<int32_t>& writes
 ) {
@@ -116,7 +115,7 @@ void runReader(
   }
 }
 
-template<template<typename> class Atom>
+template <template <typename> class Atom>
 void runWritesNeverFail(
     int capacity, int writes, int writers
 ) {