Commit c593d8ed authored by Yedidya Feldblum's avatar Yedidya Feldblum Committed by Facebook Github Bot

Move folly/LifoSem.h

Summary: [Folly] Move `folly/LifoSem.h` to `folly/synchronization/`.

Reviewed By: meyering

Differential Revision: D6245444

fbshipit-source-id: 14ffa012fa92b8c6aaf5900c930156894a492003
parent d6a27b28
...@@ -505,6 +505,7 @@ if (BUILD_TESTS) ...@@ -505,6 +505,7 @@ if (BUILD_TESTS)
DIRECTORY synchronization/test/ DIRECTORY synchronization/test/
TEST call_once_test SOURCES CallOnceTest.cpp TEST call_once_test SOURCES CallOnceTest.cpp
TEST lifo_sem_test SOURCES LifoSemTests.cpp
DIRECTORY system/test/ DIRECTORY system/test/
TEST memory_mapping_test SOURCES MemoryMappingTest.cpp TEST memory_mapping_test SOURCES MemoryMappingTest.cpp
...@@ -569,7 +570,6 @@ if (BUILD_TESTS) ...@@ -569,7 +570,6 @@ if (BUILD_TESTS)
SOURCES SOURCES
JsonOtherTest.cpp JsonOtherTest.cpp
TEST lazy_test SOURCES LazyTest.cpp TEST lazy_test SOURCES LazyTest.cpp
TEST lifosem_test SOURCES LifoSemTests.cpp
TEST lock_traits_test SOURCES LockTraitsTest.cpp TEST lock_traits_test SOURCES LockTraitsTest.cpp
TEST locks_test SOURCES SmallLocksTest.cpp SpinLockTest.cpp TEST locks_test SOURCES SmallLocksTest.cpp SpinLockTest.cpp
TEST logging_test SOURCES LoggingTest.cpp TEST logging_test SOURCES LoggingTest.cpp
......
...@@ -317,7 +317,6 @@ nobase_follyinclude_HEADERS = \ ...@@ -317,7 +317,6 @@ nobase_follyinclude_HEADERS = \
lang/RValueReferenceWrapper.h \ lang/RValueReferenceWrapper.h \
lang/SafeAssert.h \ lang/SafeAssert.h \
Lazy.h \ Lazy.h \
LifoSem.h \
Likely.h \ Likely.h \
LockTraits.h \ LockTraits.h \
LockTraitsBoost.h \ LockTraitsBoost.h \
...@@ -424,6 +423,7 @@ nobase_follyinclude_HEADERS = \ ...@@ -424,6 +423,7 @@ nobase_follyinclude_HEADERS = \
stats/TimeseriesHistogram.h \ stats/TimeseriesHistogram.h \
synchronization/AsymmetricMemoryBarrier.h \ synchronization/AsymmetricMemoryBarrier.h \
synchronization/CallOnce.h \ synchronization/CallOnce.h \
synchronization/LifoSem.h \
synchronization/detail/AtomicUtils.h \ synchronization/detail/AtomicUtils.h \
system/MemoryMapping.h \ system/MemoryMapping.h \
system/Shell.h \ system/Shell.h \
...@@ -533,7 +533,6 @@ libfolly_la_SOURCES = \ ...@@ -533,7 +533,6 @@ libfolly_la_SOURCES = \
IPAddress.cpp \ IPAddress.cpp \
IPAddressV4.cpp \ IPAddressV4.cpp \
IPAddressV6.cpp \ IPAddressV6.cpp \
LifoSem.cpp \
init/Init.cpp \ init/Init.cpp \
io/Cursor.cpp \ io/Cursor.cpp \
io/IOBuf.cpp \ io/IOBuf.cpp \
...@@ -609,6 +608,7 @@ libfolly_la_SOURCES = \ ...@@ -609,6 +608,7 @@ libfolly_la_SOURCES = \
stats/MultiLevelTimeSeries.cpp \ stats/MultiLevelTimeSeries.cpp \
stats/TimeseriesHistogram.cpp \ stats/TimeseriesHistogram.cpp \
synchronization/AsymmetricMemoryBarrier.cpp \ synchronization/AsymmetricMemoryBarrier.cpp \
synchronization/LifoSem.cpp \
system/MemoryMapping.cpp \ system/MemoryMapping.cpp \
system/Shell.cpp \ system/Shell.cpp \
system/ThreadName.cpp \ system/ThreadName.cpp \
......
...@@ -21,9 +21,9 @@ ...@@ -21,9 +21,9 @@
#include <mutex> #include <mutex>
#include <queue> #include <queue>
#include <folly/LifoSem.h>
#include <folly/executors/DrivableExecutor.h> #include <folly/executors/DrivableExecutor.h>
#include <folly/executors/ScheduledExecutor.h> #include <folly/executors/ScheduledExecutor.h>
#include <folly/synchronization/LifoSem.h>
namespace folly { namespace folly {
/// A ManualExecutor only does work when you turn the crank, by calling /// A ManualExecutor only does work when you turn the crank, by calling
......
...@@ -16,9 +16,9 @@ ...@@ -16,9 +16,9 @@
#pragma once #pragma once
#include <folly/LifoSem.h>
#include <folly/MPMCQueue.h> #include <folly/MPMCQueue.h>
#include <folly/executors/task_queue/BlockingQueue.h> #include <folly/executors/task_queue/BlockingQueue.h>
#include <folly/synchronization/LifoSem.h>
namespace folly { namespace folly {
......
...@@ -17,9 +17,9 @@ ...@@ -17,9 +17,9 @@
#pragma once #pragma once
#include <folly/Executor.h> #include <folly/Executor.h>
#include <folly/LifoSem.h>
#include <folly/MPMCQueue.h> #include <folly/MPMCQueue.h>
#include <folly/executors/task_queue/BlockingQueue.h> #include <folly/executors/task_queue/BlockingQueue.h>
#include <folly/synchronization/LifoSem.h>
namespace folly { namespace folly {
......
...@@ -16,9 +16,9 @@ ...@@ -16,9 +16,9 @@
#pragma once #pragma once
#include <folly/LifoSem.h>
#include <folly/Synchronized.h> #include <folly/Synchronized.h>
#include <folly/executors/task_queue/BlockingQueue.h> #include <folly/executors/task_queue/BlockingQueue.h>
#include <folly/synchronization/LifoSem.h>
#include <queue> #include <queue>
namespace folly { namespace folly {
......
...@@ -14,7 +14,7 @@ ...@@ -14,7 +14,7 @@
* limitations under the License. * limitations under the License.
*/ */
#include <folly/LifoSem.h> #include <folly/synchronization/LifoSem.h>
/// Raw node storage is preallocated in a contiguous memory segment, /// Raw node storage is preallocated in a contiguous memory segment,
/// but we use an anonymous mmap so the physical memory used (RSS) will /// but we use an anonymous mmap so the physical memory used (RSS) will
......
...@@ -14,7 +14,7 @@ ...@@ -14,7 +14,7 @@
* limitations under the License. * limitations under the License.
*/ */
#include <folly/LifoSem.h> #include <folly/synchronization/LifoSem.h>
#include <thread> #include <thread>
......
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