|
proxygen
|
#include <ThreadLocal.h>
Classes | |
| class | Accessor |
Public Member Functions | |
| constexpr | ThreadLocalPtr () |
| ThreadLocalPtr (ThreadLocalPtr &&other) noexcept | |
| ThreadLocalPtr & | operator= (ThreadLocalPtr &&other) |
| ~ThreadLocalPtr () | |
| T * | get () const |
| T * | operator-> () const |
| T & | operator* () const |
| T * | release () |
| void | reset (T *newPtr=nullptr) |
| operator bool () const | |
| template<typename SourceT , typename Deleter , typename = typename std::enable_if< std::is_convertible<SourceT*, T*>::value>::type> | |
| void | reset (std::unique_ptr< SourceT, Deleter > source) |
| template<typename SourceT , typename = typename std::enable_if< std::is_convertible<SourceT*, T*>::value>::type> | |
| void | reset (std::unique_ptr< SourceT > source) |
| template<class Deleter > | |
| void | reset (T *newPtr, const Deleter &deleter) |
| Accessor | accessAllThreads () const |
Private Types | |
| typedef threadlocal_detail::StaticMeta< Tag, AccessMode > | StaticMeta |
Private Member Functions | |
| void | destroy () |
| ThreadLocalPtr (const ThreadLocalPtr &)=delete | |
| ThreadLocalPtr & | operator= (const ThreadLocalPtr &)=delete |
Private Attributes | |
| StaticMeta::EntryID | id_ |
Definition at line 56 of file ThreadLocal.h.
|
private |
Definition at line 139 of file ThreadLocal.h.
|
inline |
Definition at line 142 of file ThreadLocal.h.
|
inlinenoexcept |
Definition at line 144 of file ThreadLocal.h.
|
inline |
Definition at line 153 of file ThreadLocal.h.
|
privatedelete |
|
inline |
Definition at line 437 of file ThreadLocal.h.
Referenced by folly::detail::ThreadCachedInts< folly::detail::folly::detail::Tag >::readFull().
|
inlineprivate |
Definition at line 445 of file ThreadLocal.h.
|
inline |
Definition at line 157 of file ThreadLocal.h.
Referenced by TEST().
|
inlineexplicit |
Definition at line 189 of file ThreadLocal.h.
|
inline |
Definition at line 166 of file ThreadLocal.h.
|
inline |
Definition at line 162 of file ThreadLocal.h.
|
inline |
Definition at line 146 of file ThreadLocal.h.
|
privatedelete |
|
inline |
Definition at line 170 of file ThreadLocal.h.
Referenced by TEST().
|
inline |
Definition at line 176 of file ThreadLocal.h.
Referenced by wangle::Observable< T >::forEachObserver(), folly::detail::ThreadCachedInts< folly::detail::folly::detail::Tag >::init(), runTestTag(), wangle::Observable< T >::subscribeImpl(), TEST(), and wangle::Observable< T >::unsubscribe().
|
inline |
reset() that transfers ownership from a smart pointer
Definition at line 201 of file ThreadLocal.h.
|
inline |
reset() that transfers ownership from a smart pointer with the default deleter
Definition at line 215 of file ThreadLocal.h.
|
inline |
reset() with a custom deleter: deleter(T* ptr, TLPDestructionMode mode) "mode" is ALL_THREADS if we're destructing this ThreadLocalPtr (and thus deleting pointers for all threads), and THIS_THREAD if we're only deleting the member for one thread (because of thread exit or reset()). Invoking the deleter must not throw.
Definition at line 228 of file ThreadLocal.h.
|
mutableprivate |
Definition at line 453 of file ThreadLocal.h.