41 std::shared_ptr<ThreadFactory> factory,
48 if (setpriority(PRIO_PROCESS, 0, priority) != 0) {
49 LOG(ERROR) <<
"setpriority failed (are you root?) with error " << errno,
constexpr detail::Map< Move > move
PriorityThreadFactory(std::shared_ptr< ThreadFactory > factory, int priority)
—— Concurrent Priority Queue Implementation ——
fbstring errnoStr(int err)
std::thread newThread(Func &&func) override
std::shared_ptr< ThreadFactory > factory_