proxygen
|
#include <ThreadLocalDetail.h>
Public Member Functions | |
StaticMeta () | |
~StaticMeta ()=delete | |
Public Member Functions inherited from folly::threadlocal_detail::StaticMetaBase | |
StaticMetaBase (ThreadEntry *(*threadEntry)(), bool strict) | |
void | push_back (ThreadEntry *t) |
void | erase (ThreadEntry *t) |
uint32_t | elementsCapacity () const |
uint32_t | allocate (EntryID *ent) |
void | destroy (EntryID *ent) |
void | reserve (EntryID *id) |
ElementWrapper & | getElement (EntryID *ent) |
void | reserveHeadUnlocked (uint32_t id) |
void | pushBackLocked (ThreadEntry *t, uint32_t id) |
void | pushBackUnlocked (ThreadEntry *t, uint32_t id) |
Static Public Member Functions | |
static StaticMeta< Tag, AccessMode > & | instance () |
FOLLY_EXPORT static FOLLY_ALWAYS_INLINE ElementWrapper & | get (EntryID *ent) |
static FOLLY_NOINLINE void | getSlowReserveAndCache (EntryID *ent, uint32_t &id, ThreadEntry *&threadEntry, size_t &capacity) |
FOLLY_EXPORT static FOLLY_NOINLINE ThreadEntry * | getThreadEntrySlow () |
static bool | preFork () |
static void | onForkParent () |
static void | onForkChild () |
Static Public Member Functions inherited from folly::threadlocal_detail::StaticMetaBase | |
static FOLLY_EXPORT ThreadEntryList * | getThreadEntryList () |
static void | onThreadExit (void *ptr) |
static ElementWrapper * | reallocate (ThreadEntry *threadEntry, uint32_t idval, size_t &newCapacity) |
Additional Inherited Members | |
Public Attributes inherited from folly::threadlocal_detail::StaticMetaBase | |
uint32_t | nextId_ |
std::vector< uint32_t > | freeIds_ |
std::mutex | lock_ |
SharedMutex | accessAllThreadsLock_ |
pthread_key_t | pthreadKey_ |
ThreadEntry | head_ |
ThreadEntry *(* | threadEntry_ )() |
bool | strict_ |
Protected Member Functions inherited from folly::threadlocal_detail::StaticMetaBase | |
~StaticMetaBase () | |
Definition at line 414 of file ThreadLocalDetail.h.
|
inline |
Definition at line 415 of file ThreadLocalDetail.h.
References folly::detail::AtFork::registerHandler().
|
delete |
|
inlinestatic |
Definition at line 436 of file ThreadLocalDetail.h.
References FOLLY_UNLIKELY, and uint32_t.
|
inlinestatic |
Definition at line 453 of file ThreadLocalDetail.h.
References folly::threadlocal_detail::ThreadEntry::getElementsCapacity(), folly::threadlocal_detail::StaticMetaBase::EntryID::getOrInvalid(), and UNLIKELY.
|
inlinestatic |
Definition at line 468 of file ThreadLocalDetail.h.
References folly::checkPosixError(), folly::threadlocal_detail::ThreadEntryList::count, folly::threadlocal_detail::ThreadEntryList::head, folly::threadlocal_detail::ThreadEntry::list, folly::threadlocal_detail::ThreadEntry::listNext, and folly::threadlocal_detail::ThreadEntry::meta.
|
inlinestatic |
Definition at line 428 of file ThreadLocalDetail.h.
Referenced by folly::SingletonVault::scheduleDestroyInstances().
|
inlinestatic |
Definition at line 511 of file ThreadLocalDetail.h.
References folly::threadlocal_detail::ThreadEntry::elements, folly::threadlocal_detail::ThreadEntry::getElementsCapacity(), i, folly::threadlocal_detail::ThreadEntryNode::initIfZero(), folly::threadlocal_detail::ThreadEntryNode::initZero(), folly::threadlocal_detail::ElementWrapper::node, and folly::threadlocal_detail::ThreadEntryNode::zero().
|
inlinestatic |
Definition at line 507 of file ThreadLocalDetail.h.
|
inlinestatic |
Definition at line 503 of file ThreadLocalDetail.h.