proxygen
folly::fibers::StackCacheEntry Class Reference

Public Member Functions

 StackCacheEntry (size_t stackSize)
 
StackCachecache () const noexcept
 
 ~StackCacheEntry ()
 

Private Attributes

std::unique_ptr< StackCachestackCache_
 

Detailed Description

Definition at line 276 of file GuardPageAllocator.cpp.

Constructor & Destructor Documentation

folly::fibers::StackCacheEntry::StackCacheEntry ( size_t  stackSize)
inlineexplicit

Definition at line 278 of file GuardPageAllocator.cpp.

279  : stackCache_(std::make_unique<StackCache>(stackSize)) {}
std::unique_ptr< StackCache > stackCache_
folly::fibers::StackCacheEntry::~StackCacheEntry ( )
inline

Definition at line 285 of file GuardPageAllocator.cpp.

References folly::fibers::CacheManager::giveBack(), folly::fibers::CacheManager::instance(), and folly::gen::move.

285  {
287  }
std::unique_ptr< StackCache > stackCache_
constexpr detail::Map< Move > move
Definition: Base-inl.h:2567
void giveBack(std::unique_ptr< StackCache >)
static CacheManager & instance()

Member Function Documentation

StackCache& folly::fibers::StackCacheEntry::cache ( ) const
inlinenoexcept

Definition at line 281 of file GuardPageAllocator.cpp.

281  {
282  return *stackCache_;
283  }
std::unique_ptr< StackCache > stackCache_

Member Data Documentation

std::unique_ptr<StackCache> folly::fibers::StackCacheEntry::stackCache_
private

Definition at line 290 of file GuardPageAllocator.cpp.


The documentation for this class was generated from the following file: