folly::PriorityThreadFactory::PriorityThreadFactory

Construct a factory that sets the given nice value on each thread.

Synopsis

Declared in <folly/executors/thread_factory/PriorityThreadFactory.h>

PriorityThreadFactory(
    std::shared_ptr<ThreadFactory> factory,
    int priority);

Parameters

NameDescription
factoryThe underlying factory that creates the threads.
priorityThe nice value applied to each created thread.