proxygen
|
#include <InitThreadFactory.h>
Classes | |
struct | ThreadInitFini |
Public Member Functions | |
InitThreadFactory (std::shared_ptr< ThreadFactory > threadFactory, Func &&threadInitializer, Func &&threadFinializer=[]{}) | |
std::thread | newThread (Func &&func) override |
Public Member Functions inherited from folly::ThreadFactory | |
virtual | ~ThreadFactory ()=default |
Private Attributes | |
std::shared_ptr< ThreadFactory > | threadFactory_ |
std::shared_ptr< ThreadInitFini > | threadInitFini_ |
Definition at line 27 of file InitThreadFactory.h.
|
inlineexplicit |
Definition at line 29 of file InitThreadFactory.h.
References folly::gen::move, threadFactory_, and threadInitFini_.
|
inlineoverridevirtual |
Implements folly::ThreadFactory.
Definition at line 38 of file InitThreadFactory.h.
References folly::gen::move, SCOPE_EXIT, threadFactory_, and threadInitFini_.
Referenced by TEST().
|
private |
Definition at line 50 of file InitThreadFactory.h.
Referenced by InitThreadFactory(), and newThread().
|
private |
Definition at line 58 of file InitThreadFactory.h.
Referenced by InitThreadFactory(), and newThread().