Commit 18172db6 authored by James Sedgwick's avatar James Sedgwick Committed by Facebook Github Bot

move CallOnce to synchronization/

Summary: as above

Reviewed By: knekritz

Differential Revision: D6088687

fbshipit-source-id: 0efbb7f5fa33b5f553c0c2019658370fc6e8613f
parent 084ff8d9
...@@ -475,6 +475,9 @@ if (BUILD_TESTS) ...@@ -475,6 +475,9 @@ if (BUILD_TESTS)
TEST timeseries_histogram_test SOURCES TimeseriesHistogramTest.cpp TEST timeseries_histogram_test SOURCES TimeseriesHistogramTest.cpp
TEST timeseries_test SOURCES TimeseriesTest.cpp TEST timeseries_test SOURCES TimeseriesTest.cpp
DIRECTORY synchronization/test/
TEST call_once_test SOURCES CallOnceTest.cpp
DIRECTORY test/ DIRECTORY test/
TEST ahm_int_stress_test SOURCES AHMIntStressTest.cpp TEST ahm_int_stress_test SOURCES AHMIntStressTest.cpp
TEST arena_test SOURCES ArenaTest.cpp TEST arena_test SOURCES ArenaTest.cpp
...@@ -492,7 +495,6 @@ if (BUILD_TESTS) ...@@ -492,7 +495,6 @@ if (BUILD_TESTS)
TEST bit_iterator_test SOURCES BitIteratorTest.cpp TEST bit_iterator_test SOURCES BitIteratorTest.cpp
TEST bits_test SOURCES BitsTest.cpp TEST bits_test SOURCES BitsTest.cpp
TEST cacheline_padded_test SOURCES CachelinePaddedTest.cpp TEST cacheline_padded_test SOURCES CachelinePaddedTest.cpp
TEST call_once_test SOURCES CallOnceTest.cpp
TEST checksum_test SOURCES ChecksumTest.cpp TEST checksum_test SOURCES ChecksumTest.cpp
TEST clock_gettime_wrappers_test SOURCES ClockGettimeWrappersTest.cpp TEST clock_gettime_wrappers_test SOURCES ClockGettimeWrappersTest.cpp
TEST concurrent_skip_list_test SOURCES ConcurrentSkipListTest.cpp TEST concurrent_skip_list_test SOURCES ConcurrentSkipListTest.cpp
......
...@@ -44,7 +44,6 @@ nobase_follyinclude_HEADERS = \ ...@@ -44,7 +44,6 @@ nobase_follyinclude_HEADERS = \
Benchmark.h \ Benchmark.h \
Bits.h \ Bits.h \
CachelinePadded.h \ CachelinePadded.h \
CallOnce.h \
Chrono.h \ Chrono.h \
ClockGettimeWrappers.h \ ClockGettimeWrappers.h \
ConcurrentSkipList.h \ ConcurrentSkipList.h \
...@@ -419,6 +418,7 @@ nobase_follyinclude_HEADERS = \ ...@@ -419,6 +418,7 @@ nobase_follyinclude_HEADERS = \
stats/MultiLevelTimeSeries.h \ stats/MultiLevelTimeSeries.h \
stats/TimeseriesHistogram-defs.h \ stats/TimeseriesHistogram-defs.h \
stats/TimeseriesHistogram.h \ stats/TimeseriesHistogram.h \
synchronization/CallOnce.h \
stop_watch.h \ stop_watch.h \
String.h \ String.h \
String-inl.h \ String-inl.h \
......
...@@ -21,13 +21,13 @@ ...@@ -21,13 +21,13 @@
#include <mutex> #include <mutex>
#include <random> #include <random>
#include <folly/CallOnce.h>
#include <folly/File.h> #include <folly/File.h>
#include <folly/FileUtil.h> #include <folly/FileUtil.h>
#include <folly/SingletonThreadLocal.h> #include <folly/SingletonThreadLocal.h>
#include <folly/ThreadLocal.h> #include <folly/ThreadLocal.h>
#include <folly/portability/SysTime.h> #include <folly/portability/SysTime.h>
#include <folly/portability/Unistd.h> #include <folly/portability/Unistd.h>
#include <folly/synchronization/CallOnce.h>
#include <glog/logging.h> #include <glog/logging.h>
#ifdef _MSC_VER #ifdef _MSC_VER
......
...@@ -35,7 +35,6 @@ ...@@ -35,7 +35,6 @@
#include <boost/utility.hpp> #include <boost/utility.hpp>
#include <glog/logging.h> #include <glog/logging.h>
#include <folly/CallOnce.h>
#include <folly/Executor.h> #include <folly/Executor.h>
#include <folly/Function.h> #include <folly/Function.h>
#include <folly/Portability.h> #include <folly/Portability.h>
...@@ -47,6 +46,7 @@ ...@@ -47,6 +46,7 @@
#include <folly/io/async/Request.h> #include <folly/io/async/Request.h>
#include <folly/io/async/TimeoutManager.h> #include <folly/io/async/TimeoutManager.h>
#include <folly/portability/Event.h> #include <folly/portability/Event.h>
#include <folly/synchronization/CallOnce.h>
namespace folly { namespace folly {
......
...@@ -14,7 +14,7 @@ ...@@ -14,7 +14,7 @@
* limitations under the License. * limitations under the License.
*/ */
#include <folly/CallOnce.h> #include <folly/synchronization/CallOnce.h>
#include <deque> #include <deque>
#include <mutex> #include <mutex>
......
...@@ -18,9 +18,9 @@ ...@@ -18,9 +18,9 @@
#include <mutex> #include <mutex>
#include <thread> #include <thread>
#include <folly/CallOnce.h>
#include <folly/portability/GFlags.h> #include <folly/portability/GFlags.h>
#include <folly/portability/GTest.h> #include <folly/portability/GTest.h>
#include <folly/synchronization/CallOnce.h>
#include <glog/logging.h> #include <glog/logging.h>
......
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