#include <folly/executors/QueueObserver.h>
namespace {
std::unique_ptr<folly::QueueObserverFactory>
make_queue_observer_factory_fallback(
const std::string&, size_t, folly::WorkerProvider*) noexcept { … }
class WorkerKeepAlive : public folly::WorkerProvider::KeepAlive { … };
}
namespace folly {
ThreadIdWorkerProvider::IdsWithKeepAlive
ThreadIdWorkerProvider::collectThreadIds() { … }
void ThreadIdWorkerProvider::addTid(pid_t tid) { … }
void ThreadIdWorkerProvider::removeTid(pid_t tid) { … }
WorkerProvider::KeepAlive::~KeepAlive() { … }
std::unique_ptr<QueueObserverFactory> QueueObserverFactory::make(
const std::string& context,
size_t numPriorities,
WorkerProvider* workerProvider) { … }
}