Summary:
Update Synchronized.h to no longer include LockTraitsBoost.h
Callers that want to use folly::Synchronized with a boost lock type will now
need to explicitly include LockTraitsBoost.h on their own.
Reviewed By: yfeldblum
Differential Revision:
D3521168
fbshipit-source-id:
08f0041f51fe2e9566bde58e9f039a6d187b54e3
#pragma once
-#include <boost/thread.hpp>
#include <folly/LockTraits.h>
-#include <folly/LockTraitsBoost.h>
#include <folly/Preprocessor.h>
#include <folly/SharedMutex.h>
#include <folly/Traits.h>
#endif
#include <signal.h>
+#include <iostream>
#include <mutex>
#include <folly/Singleton.h>
// Test bed for folly/Synchronized.h
+#include <folly/LockTraitsBoost.h>
#include <folly/Portability.h>
#include <folly/RWSpinLock.h>
#include <folly/SharedMutex.h>
#include <gtest/gtest.h>
+#include <folly/Foreach.h>
+#include <folly/Random.h>
+#include <folly/Synchronized.h>
+#include <glog/logging.h>
#include <algorithm>
-#include <random>
#include <functional>
+#include <map>
+#include <random>
#include <thread>
#include <vector>
-#include <glog/logging.h>
-#include <folly/Foreach.h>
-#include <folly/Random.h>
-#include <folly/Synchronized.h>
-
inline std::mt19937& getRNG() {
static const auto seed = folly::randomNumberSeed();