proxygen
|
Public Member Functions | |
LocalData () | |
~LocalData () | |
LocalData (const LocalData &other) | |
LocalData & | operator= (const LocalData &other) |
template<typename T > | |
T & | get () |
void | reset () |
template<typename T > | |
FOLLY_NOINLINE T & | getSlow () |
template<typename T > | |
T & | getSlow () |
Static Public Member Functions | |
static void * | allocateHeapBuffer (size_t size) |
static void | freeHeapBuffer (void *buffer) |
template<typename T > | |
static void | dataCopyConstructor (void *, const void *) |
template<typename T > | |
static void | dataBufferDestructor (void *) |
template<typename T > | |
static void | dataHeapDestructor (void *) |
Public Attributes | |
std::aligned_storage< kBufferSize >::type | buffer_ |
size_t | dataSize_ |
const std::type_info * | dataType_ |
void(* | dataDestructor_ )(void *) |
void(* | dataCopyConstructor_ )(void *, const void *) |
void * | data_ {nullptr} |
Static Public Attributes | |
static constexpr size_t | kBufferSize = 128 |
|
inline |
folly::fibers::Fiber::LocalData::~LocalData | ( | ) |
Definition at line 197 of file Fiber.cpp.
Referenced by LocalData().
folly::fibers::Fiber::LocalData::LocalData | ( | const LocalData & | other | ) |
|
static |
Definition at line 236 of file Fiber.cpp.
References folly::size().
Referenced by get(), and operator=().
|
static |
|
static |
|
static |
Definition at line 71 of file Fiber-inl.h.
Referenced by get().
|
static |
|
inline |
Definition at line 139 of file Fiber.h.
References allocateHeapBuffer(), buffer(), data_, dataBufferDestructor(), dataCopyConstructor(), dataHeapDestructor(), dataType_, FOLLY_NOINLINE, freeHeapBuffer(), getSlow(), reset(), folly::size(), and folly::T.
Referenced by folly::fibers::FiberManager::local().
T& folly::fibers::Fiber::LocalData::getSlow | ( | ) |
Definition at line 43 of file Fiber-inl.h.
References buffer_, data_, kBufferSize, and folly::T.
FOLLY_NOINLINE T& folly::fibers::Fiber::LocalData::getSlow | ( | ) |
Referenced by get().
Fiber::LocalData & folly::fibers::Fiber::LocalData::operator= | ( | const LocalData & | other | ) |
Definition at line 205 of file Fiber.cpp.
References allocateHeapBuffer(), buffer_, data_, dataCopyConstructor_, dataDestructor_, dataSize_, dataType_, kBufferSize, and reset().
Referenced by LocalData().
void folly::fibers::Fiber::LocalData::reset | ( | ) |
Definition at line 227 of file Fiber.cpp.
References data_, and dataDestructor_.
Referenced by get(), operator=(), and folly::fibers::FiberManager::runReadyFiber().
std::aligned_storage<kBufferSize>::type folly::fibers::Fiber::LocalData::buffer_ |
Definition at line 164 of file Fiber.h.
Referenced by operator=().
void* folly::fibers::Fiber::LocalData::data_ {nullptr} |
Definition at line 170 of file Fiber.h.
Referenced by get(), operator=(), and reset().
void(* folly::fibers::Fiber::LocalData::dataCopyConstructor_) (void *, const void *) |
Definition at line 169 of file Fiber.h.
Referenced by operator=().
void(* folly::fibers::Fiber::LocalData::dataDestructor_) (void *) |
Definition at line 168 of file Fiber.h.
Referenced by operator=(), and reset().
size_t folly::fibers::Fiber::LocalData::dataSize_ |
Definition at line 165 of file Fiber.h.
Referenced by operator=().
const std::type_info* folly::fibers::Fiber::LocalData::dataType_ |
Definition at line 167 of file Fiber.h.
Referenced by get(), and operator=().
|
static |
Definition at line 163 of file Fiber.h.
Referenced by operator=().