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

#include <FiberManagerInternal-inl.h>

Public Member Functions

 Finally (G finally, FiberManager &fm)
 
void operator() ()
 

Private Attributes

finally_
 
folly::Try< Resultresult_
 
FiberManagerfm_
 

Friends

class Func
 

Detailed Description

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

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

Constructor & Destructor Documentation

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

Member Function Documentation

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

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

References folly::gen::move.

369  {
370  try {
372  } catch (...) {
374  std::current_exception(), "running Finally functor");
375  }
376 
377  if (allocateInBuffer) {
378  this->~Finally();
379  } else {
380  delete this;
381  }
382  }
constexpr detail::Map< Move > move
Definition: Base-inl.h:2567

Friends And Related Function Documentation

template<typename F , typename G >
friend class Func
friend

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

Member Data Documentation

template<typename F , typename G >
G folly::fibers::FiberManager::AddTaskFinallyHelper< F, G >::Finally::finally_
private

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

template<typename F , typename G >
FiberManager& folly::fibers::FiberManager::AddTaskFinallyHelper< F, G >::Finally::fm_
private

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

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

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


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