#include <folly/ThreadLocal.h>
-#include <dlfcn.h>
#include <sys/types.h>
-#include <sys/wait.h>
-#include <unistd.h>
#include <array>
#include <atomic>
#include <unordered_map>
#include <boost/thread/tss.hpp>
-#include <gflags/gflags.h>
#include <glog/logging.h>
#include <folly/Benchmark.h>
#include <folly/experimental/io/FsUtil.h>
+#include <folly/portability/GFlags.h>
+#include <folly/portability/Unistd.h>
using namespace folly;
for (int i = 0; i < FLAGS_numThreads; ++i) { \
threads.push_back(std::thread([&]() { \
var.reset(new int(0)); \
- for (int i = 0; i < itersPerThread; ++i) { \
+ for (int j = 0; j < itersPerThread; ++j) { \
++(*var.get()); \
} \
})); \