Futex::futexWait returns FutexResult
[folly.git] / folly / test / ProducerConsumerQueueBenchmark.cpp
index 01b83d97445d0aa8dc7ac1a3e50522b69fc913cc..a7ce363fa4825cc8109ed50493c37f23c79287ac 100644 (file)
@@ -18,8 +18,6 @@
 
 #include <folly/ProducerConsumerQueue.h>
 
-#include <pthread.h>
-
 #include <cstdio>
 #include <iostream>
 #include <thread>
@@ -28,6 +26,7 @@
 
 #include <folly/Benchmark.h>
 #include <folly/portability/GFlags.h>
+#include <folly/portability/PThread.h>
 #include <folly/stats/Histogram.h>
 #include <folly/stats/Histogram-defs.h>
 
@@ -41,7 +40,7 @@ typedef ProducerConsumerQueue<ThroughputType> ThroughputQueueType;
 typedef unsigned long LatencyType;
 typedef ProducerConsumerQueue<LatencyType> LatencyQueueType;
 
-template<class QueueType>
+template <class QueueType>
 struct ThroughputTest {
   explicit ThroughputTest(size_t size, int iters, int cpu0, int cpu1)
   : queue_(size),
@@ -87,7 +86,7 @@ struct ThroughputTest {
   int cpu1_;
 };
 
-template<class QueueType>
+template <class QueueType>
 struct LatencyTest {
   explicit LatencyTest(size_t size, int iters, int cpu0, int cpu1)
   : queue_(size),
@@ -241,7 +240,7 @@ BENCHMARK_PARAM(BM_ProducerConsumer, 1048574);
 BENCHMARK_PARAM(BM_ProducerConsumerAffinity, 1048574);
 BENCHMARK_PARAM(BM_ProducerConsumerLatency, 1048574);
 
-}
+} // namespace
 
 int main(int argc, char** argv) {
   google::InitGoogleLogging(argv[0]);