proxygen
|
#include <ThreadLocal.h>
Public Types | |
typedef ThreadLocalPtr< T, Tag, AccessMode >::Accessor | Accessor |
Public Member Functions | |
constexpr | ThreadLocal () |
template<typename F , _t< std::enable_if< is_invocable_r< T *, F >::value, int >> = 0> | |
ThreadLocal (F &&constructor) | |
FOLLY_ALWAYS_INLINE FOLLY_ATTR_VISIBILITY_HIDDEN T * | get () const |
T * | operator-> () const |
T & | operator* () const |
void | reset (T *newPtr=nullptr) |
Accessor | accessAllThreads () const |
ThreadLocal (ThreadLocal &&)=default | |
ThreadLocal & | operator= (ThreadLocal &&)=default |
Private Member Functions | |
ThreadLocal (const ThreadLocal &)=delete | |
ThreadLocal & | operator= (const ThreadLocal &)=delete |
FOLLY_NOINLINE T * | makeTlp () const |
Private Attributes | |
ThreadLocalPtr< T, Tag, AccessMode > | tlp_ |
std::function< T *()> | constructor_ |
Definition at line 59 of file ThreadLocal.h.
typedef ThreadLocalPtr<T, Tag, AccessMode>::Accessor folly::ThreadLocal< T, Tag, AccessMode >::Accessor |
Definition at line 86 of file ThreadLocal.h.
|
inline |
Definition at line 61 of file ThreadLocal.h.
Referenced by folly::ThreadLocal< std::queue< folly::Function > >::accessAllThreads().
|
inlineexplicit |
Definition at line 66 of file ThreadLocal.h.
|
default |
|
privatedelete |
|
inline |
Definition at line 87 of file ThreadLocal.h.
Referenced by folly::SingletonThreadLocal< T, Tag, Make, TLTag >::accessAllThreads(), SimpleThreadCachedInt::read(), and TEST().
|
inline |
|
inlineprivate |
Definition at line 100 of file ThreadLocal.h.
Referenced by folly::ThreadLocal< std::queue< folly::Function > >::get().
|
inline |
Definition at line 78 of file ThreadLocal.h.
|
inline |
Definition at line 74 of file ThreadLocal.h.
|
default |
|
privatedelete |
|
inline |
Definition at line 82 of file ThreadLocal.h.
Referenced by folly::ThreadLocalPtr< SubscriberMap >::reset(), and TEST().
|
private |
Definition at line 107 of file ThreadLocal.h.
Referenced by folly::ThreadLocal< std::queue< folly::Function > >::makeTlp().
|
mutableprivate |
Definition at line 106 of file ThreadLocal.h.
Referenced by folly::ThreadLocal< std::queue< folly::Function > >::accessAllThreads(), folly::ThreadLocal< std::queue< folly::Function > >::get(), folly::ThreadLocal< std::queue< folly::Function > >::makeTlp(), and folly::ThreadLocal< std::queue< folly::Function > >::reset().