Definition at line 104 of file ObserverManager.cpp.
folly::observer_detail::ObserverManager::NextQueue::NextQueue |
( |
ObserverManager & |
manager | ) |
|
|
inlineexplicit |
Definition at line 106 of file ObserverManager.cpp.
References folly::gen::move, and folly::observer_detail::ObserverManager::CurrentQueue::queue_.
112 queue_.blockingRead(queueCoreWeak);
117 std::vector<Core::Ptr> cores;
119 auto queueCore = queueCoreWeak.lock();
123 cores.emplace_back(
std::move(queueCore));
131 while (cores.size() < kNextQueueSize &&
queue_.read(queueCoreWeak)) {
135 if (
auto queueCore = queueCoreWeak.lock()) {
136 cores.emplace_back(
std::move(queueCore));
143 for (
auto& core : cores) {
SharedMutexReadPriority versionMutex_
constexpr detail::Map< Move > move
MPMCQueue< Core::WeakPtr > queue_
std::atomic< bool > stop_
std::weak_ptr< Core > WeakPtr
static void scheduleRefresh(Core::Ptr core, size_t minVersion, bool force=false)
ObserverManager & manager_
std::atomic< size_t > version_
folly::observer_detail::ObserverManager::NextQueue::~NextQueue |
( |
| ) |
|
|
inline |
void folly::observer_detail::ObserverManager::NextQueue::add |
( |
Core::WeakPtr |
core | ) |
|
|
inline |
ObserverManager& folly::observer_detail::ObserverManager::NextQueue::manager_ |
|
private |
std::atomic<bool> folly::observer_detail::ObserverManager::NextQueue::stop_ {false} |
|
private |
std::thread folly::observer_detail::ObserverManager::NextQueue::thread_ |
|
private |
The documentation for this class was generated from the following file: