proxygen
|
#include <ThreadLocalDetail.h>
Public Types | |
using | DeleterFunType = void(void *, TLPDestructionMode) |
Public Member Functions | |
bool | dispose (TLPDestructionMode mode) |
void * | release () |
template<class Ptr > | |
void | set (Ptr p) |
template<class Ptr , class Deleter > | |
void | set (Ptr p, const Deleter &d) |
void | cleanup () |
Public Attributes | |
void * | ptr |
union { | |
DeleterFunType * deleter1 | |
std::function< DeleterFunType > * deleter2 | |
}; | |
bool | ownsDeleter |
ThreadEntryNode | node |
POD wrapper around an element (a void*) and an associated deleter. This must be POD, as we memset() it to 0 and memcpy() it around.
Definition at line 118 of file ThreadLocalDetail.h.
using folly::threadlocal_detail::ElementWrapper::DeleterFunType = void(void*, TLPDestructionMode) |
Definition at line 119 of file ThreadLocalDetail.h.
|
inline |
Definition at line 180 of file ThreadLocalDetail.h.
References ptr.
|
inline |
Definition at line 121 of file ThreadLocalDetail.h.
|
inline |
Definition at line 131 of file ThreadLocalDetail.h.
References folly::ssl::cleanup(), and ptr.
Referenced by folly::ThreadLocalPtr< SubscriberMap >::release().
|
inline |
Definition at line 142 of file ThreadLocalDetail.h.
References folly::gen::guard(), folly::makeGuard(), and ptr.
|
inline |
Definition at line 159 of file ThreadLocalDetail.h.
References folly::gen::guard(), folly::makeGuard(), mode, ptr, and folly::THIS_THREAD.
union { ... } |
DeleterFunType* folly::threadlocal_detail::ElementWrapper::deleter1 |
Definition at line 191 of file ThreadLocalDetail.h.
Referenced by folly::threadlocal_detail::StaticMetaBase::destroy().
std::function<DeleterFunType>* folly::threadlocal_detail::ElementWrapper::deleter2 |
Definition at line 192 of file ThreadLocalDetail.h.
ThreadEntryNode folly::threadlocal_detail::ElementWrapper::node |
Definition at line 195 of file ThreadLocalDetail.h.
Referenced by folly::ThreadLocalPtr< T, Tag, AccessMode >::Accessor::Iterator::decrementToValid(), folly::threadlocal_detail::ThreadEntryNode::eraseZero(), folly::ThreadLocalPtr< T, Tag, AccessMode >::Accessor::Iterator::incrementToValid(), folly::threadlocal_detail::StaticMeta< Tag, AccessMode >::onForkChild(), folly::threadlocal_detail::ThreadEntryNode::push_back(), folly::threadlocal_detail::StaticMetaBase::pushBackLocked(), folly::threadlocal_detail::StaticMetaBase::pushBackUnlocked(), folly::threadlocal_detail::StaticMetaBase::reserve(), and folly::threadlocal_detail::StaticMetaBase::reserveHeadUnlocked().
bool folly::threadlocal_detail::ElementWrapper::ownsDeleter |
Definition at line 194 of file ThreadLocalDetail.h.
Referenced by folly::threadlocal_detail::StaticMetaBase::destroy().
void* folly::threadlocal_detail::ElementWrapper::ptr |
Definition at line 189 of file ThreadLocalDetail.h.
Referenced by folly::ThreadLocalPtr< T, Tag, AccessMode >::Accessor::Iterator::dereference(), folly::threadlocal_detail::StaticMetaBase::destroy(), folly::ThreadLocalPtr< SubscriberMap >::get(), and folly::ThreadLocalPtr< T, Tag, AccessMode >::Accessor::Iterator::valid().