folly::ThreadFactory

Interface for creating threads used by executors.

Synopsis

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

class ThreadFactory;

Member Functions

NameDescription
ThreadFactory [constructor]Constructs the factory.
~ThreadFactory [destructor] [virtual]Destroys the factory.
getNamePrefix [virtual]Returns the name prefix applied to threads created by this factory.
newThread [virtual]Creates a new thread that runs the given function.

Derived Classes

NameDescription
InitThreadFactory A thread factory that runs setup and teardown callbacks around each thread.
NamedThreadFactory A ThreadFactory that names each thread it creates.