proxygen
folly::fibers::FiberManager::AddTaskFinallyHelper< F, G >::Func Class Reference

#include <FiberManagerInternal-inl.h>

Public Member Functions

 Func (F func, Finally &finally)
 
void operator() ()
 

Private Attributes

func_
 
folly::Try< Result > & result_
 

Detailed Description

template<typename F, typename G>
class folly::fibers::FiberManager::AddTaskFinallyHelper< F, G >::Func

Definition at line 392 of file FiberManagerInternal-inl.h.

Constructor & Destructor Documentation

template<typename F , typename G >
folly::fibers::FiberManager::AddTaskFinallyHelper< F, G >::Func::Func ( func,
Finally finally 
)
inline

Member Function Documentation

template<typename F , typename G >
void folly::fibers::FiberManager::AddTaskFinallyHelper< F, G >::Func::operator() ( )
inline

Definition at line 397 of file FiberManagerInternal-inl.h.

References folly::gen::move, and folly::tryEmplaceWith().

397  {
399 
400  if (allocateInBuffer) {
401  this->~Func();
402  } else {
403  delete this;
404  }
405  }
constexpr detail::Map< Move > move
Definition: Base-inl.h:2567
T * tryEmplaceWith(Try< T > &t, Func &&func) noexcept
Definition: Try-inl.h:266

Member Data Documentation

template<typename F , typename G >
F folly::fibers::FiberManager::AddTaskFinallyHelper< F, G >::Func::func_
private

Definition at line 408 of file FiberManagerInternal-inl.h.

template<typename F , typename G >
folly::Try<Result>& folly::fibers::FiberManager::AddTaskFinallyHelper< F, G >::Func::result_
private

Definition at line 409 of file FiberManagerInternal-inl.h.


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