Definition at line 45 of file ObserverManager.cpp.
folly::observer_detail::ObserverManager::CurrentQueue::CurrentQueue |
( |
| ) |
|
|
inline |
Definition at line 47 of file ObserverManager.cpp.
References folly::exceptionStr(), i, folly::observer_detail::ObserverManager::inManagerThread_, int32_t, folly::observer_detail::kObserverManagerThreadNamePrefix, queue_, folly::setThreadName(), folly::sformat(), and threads_.
47 :
queue_(kCurrentQueueSize) {
48 if (FLAGS_observer_manager_pool_size < 1) {
49 LOG(ERROR) <<
"--observer_manager_pool_size should be >= 1";
50 FLAGS_observer_manager_pool_size = 1;
52 for (
int32_t i = 0;
i < FLAGS_observer_manager_pool_size; ++
i) {
69 LOG(ERROR) <<
"Exception while running CurrentQueue task: " A polymorphic function wrapper that is not copyable and does not require the wrapped function to be c...
std::string sformat(StringPiece fmt, Args &&...args)
std::vector< std::thread > threads_
static FOLLY_TLS bool inManagerThread_
fbstring exceptionStr(const std::exception &e)
MPMCQueue< Function< void()> > queue_
static constexpr StringPiece kObserverManagerThreadNamePrefix
bool setThreadName(std::thread::id tid, StringPiece name)
folly::observer_detail::ObserverManager::CurrentQueue::~CurrentQueue |
( |
| ) |
|
|
inline |
void folly::observer_detail::ObserverManager::CurrentQueue::add |
( |
Function< void()> |
task | ) |
|
|
inline |
MPMCQueue<Function<void()> > folly::observer_detail::ObserverManager::CurrentQueue::queue_ |
|
private |
std::vector<std::thread> folly::observer_detail::ObserverManager::CurrentQueue::threads_ |
|
private |
The documentation for this class was generated from the following file: