proxygen
folly::fibers::FiberManager::AddTaskHelper< F >::Func Class Reference

#include <FiberManagerInternal-inl.h>

Public Member Functions

 Func (F &&func, FiberManager &fm)
 
void operator() ()
 

Private Attributes

func_
 
FiberManagerfm_
 

Detailed Description

template<typename F>
class folly::fibers::FiberManager::AddTaskHelper< F >::Func

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

Constructor & Destructor Documentation

template<typename F >
folly::fibers::FiberManager::AddTaskHelper< F >::Func::Func ( F &&  func,
FiberManager fm 
)
inline

Member Function Documentation

template<typename F >
void folly::fibers::FiberManager::AddTaskHelper< F >::Func::operator() ( )
inline

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

285  {
286  try {
287  func_();
288  } catch (...) {
290  std::current_exception(), "running Func functor");
291  }
292  if (allocateInBuffer) {
293  this->~Func();
294  } else {
295  delete this;
296  }
297  }

Member Data Documentation

template<typename F >
FiberManager& folly::fibers::FiberManager::AddTaskHelper< F >::Func::fm_
private

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

template<typename F >
F folly::fibers::FiberManager::AddTaskHelper< F >::Func::func_
private

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


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