Commit a2b94586 authored by Adam Simpkins's avatar Adam Simpkins Committed by Facebook Github Bot 6

Remove LockTraitsBoost from Synchronized.h

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
parent 6f7a1148
...@@ -23,9 +23,7 @@ ...@@ -23,9 +23,7 @@
#pragma once #pragma once
#include <boost/thread.hpp>
#include <folly/LockTraits.h> #include <folly/LockTraits.h>
#include <folly/LockTraitsBoost.h>
#include <folly/Preprocessor.h> #include <folly/Preprocessor.h>
#include <folly/SharedMutex.h> #include <folly/SharedMutex.h>
#include <folly/Traits.h> #include <folly/Traits.h>
......
...@@ -20,6 +20,7 @@ ...@@ -20,6 +20,7 @@
#endif #endif
#include <signal.h> #include <signal.h>
#include <iostream>
#include <mutex> #include <mutex>
#include <folly/Singleton.h> #include <folly/Singleton.h>
......
...@@ -18,6 +18,7 @@ ...@@ -18,6 +18,7 @@
// Test bed for folly/Synchronized.h // Test bed for folly/Synchronized.h
#include <folly/LockTraitsBoost.h>
#include <folly/Portability.h> #include <folly/Portability.h>
#include <folly/RWSpinLock.h> #include <folly/RWSpinLock.h>
#include <folly/SharedMutex.h> #include <folly/SharedMutex.h>
......
...@@ -18,16 +18,16 @@ ...@@ -18,16 +18,16 @@
#include <gtest/gtest.h> #include <gtest/gtest.h>
#include <folly/Foreach.h>
#include <folly/Random.h>
#include <folly/Synchronized.h>
#include <glog/logging.h>
#include <algorithm> #include <algorithm>
#include <random>
#include <functional> #include <functional>
#include <map>
#include <random>
#include <thread> #include <thread>
#include <vector> #include <vector>
#include <glog/logging.h>
#include <folly/Foreach.h>
#include <folly/Random.h>
#include <folly/Synchronized.h>
inline std::mt19937& getRNG() { inline std::mt19937& getRNG() {
static const auto seed = folly::randomNumberSeed(); static const auto seed = folly::randomNumberSeed();
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment