proxygen
folly::fibers::FiberManager::RemoteTask Struct Reference

Public Member Functions

template<typename F >
 RemoteTask (F &&f)
 
template<typename F >
 RemoteTask (F &&f, const Fiber::LocalData &localData_)
 

Public Attributes

folly::Function< void()> func
 
std::unique_ptr< Fiber::LocalDatalocalData
 
std::shared_ptr< RequestContextrcontext
 
AtomicIntrusiveLinkedListHook< RemoteTasknextRemoteTask
 

Detailed Description

Definition at line 352 of file FiberManagerInternal.h.

Constructor & Destructor Documentation

template<typename F >
folly::fibers::FiberManager::RemoteTask::RemoteTask ( F &&  f)
inlineexplicit

Definition at line 354 of file FiberManagerInternal.h.

355  : func(std::forward<F>(f)), rcontext(RequestContext::saveContext()) {}
auto f
static std::shared_ptr< RequestContext > saveContext()
Definition: Request.h:196
std::shared_ptr< RequestContext > rcontext
template<typename F >
folly::fibers::FiberManager::RemoteTask::RemoteTask ( F &&  f,
const Fiber::LocalData localData_ 
)
inline

Definition at line 357 of file FiberManagerInternal.h.

358  : func(std::forward<F>(f)),
359  localData(std::make_unique<Fiber::LocalData>(localData_)),
auto f
static std::shared_ptr< RequestContext > saveContext()
Definition: Request.h:196
std::shared_ptr< RequestContext > rcontext
std::unique_ptr< Fiber::LocalData > localData

Member Data Documentation

folly::Function<void()> folly::fibers::FiberManager::RemoteTask::func
std::unique_ptr<Fiber::LocalData> folly::fibers::FiberManager::RemoteTask::localData
AtomicIntrusiveLinkedListHook<RemoteTask> folly::fibers::FiberManager::RemoteTask::nextRemoteTask

Definition at line 364 of file FiberManagerInternal.h.

std::shared_ptr<RequestContext> folly::fibers::FiberManager::RemoteTask::rcontext

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