/*
- * 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 <folly/AtomicUnorderedMap.h>
-#include <semaphore.h>
#include <thread>
#include <unordered_map>
#include <folly/Benchmark.h>
#include <folly/portability/GFlags.h>
#include <folly/portability/GTest.h>
+#include <folly/portability/Semaphore.h>
#include <folly/test/DeterministicSchedule.h>
using namespace folly;
if (!pr.second) {
pr.first->second.data++;
}
- } catch (std::bad_alloc& x) {
+ } catch (std::bad_alloc&) {
LOG(INFO) << "bad alloc";
}
}