proxygen
|
#include <NamedThreadFactory.h>
Public Member Functions | |
NamedThreadFactory (folly::StringPiece prefix) | |
std::thread | newThread (Func &&func) override |
void | setNamePrefix (folly::StringPiece prefix) |
std::string | getNamePrefix () |
Public Member Functions inherited from folly::ThreadFactory | |
virtual | ~ThreadFactory ()=default |
Private Attributes | |
std::string | prefix_ |
std::atomic< uint64_t > | suffix_ |
Definition at line 30 of file NamedThreadFactory.h.
|
inlineexplicit |
Definition at line 32 of file NamedThreadFactory.h.
|
inline |
|
inlineoverridevirtual |
Implements folly::ThreadFactory.
Definition at line 35 of file NamedThreadFactory.h.
References folly::gen::move, name, prefix_, folly::setThreadName(), and suffix_.
|
inline |
Definition at line 44 of file NamedThreadFactory.h.
References prefix_, and folly::Range< Iter >::str().
|
private |
Definition at line 53 of file NamedThreadFactory.h.
Referenced by getNamePrefix(), newThread(), and setNamePrefix().
|
private |
Definition at line 54 of file NamedThreadFactory.h.
Referenced by newThread().