Interface for creating threads used by executors.
Declared in <folly/executors/thread_factory/ThreadFactory.h>
class ThreadFactory;
| Name | Description |
|---|---|
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. |
| Name | Description |
|---|---|
InitThreadFactory | A thread factory that runs setup and teardown callbacks around each thread. |
NamedThreadFactory | A ThreadFactory that names each thread it creates. |