proxygen
folly::CPUThreadPoolExecutor::CPUTask Struct Reference

#include <CPUThreadPoolExecutor.h>

Inheritance diagram for folly::CPUThreadPoolExecutor::CPUTask:
folly::ThreadPoolExecutor::Task

Public Member Functions

 CPUTask (Func &&f, std::chrono::milliseconds expiration, Func &&expireCallback)
 
 CPUTask ()
 
- Public Member Functions inherited from folly::ThreadPoolExecutor::Task
 Task (Func &&func, std::chrono::milliseconds expiration, Func &&expireCallback)
 

Public Attributes

bool poison
 
- Public Attributes inherited from folly::ThreadPoolExecutor::Task
Func func_
 
TaskStats stats_
 
std::chrono::steady_clock::time_point enqueueTime_
 
std::chrono::milliseconds expiration_
 
Func expireCallback_
 
std::shared_ptr< folly::RequestContextcontext_
 

Detailed Description

Definition at line 121 of file CPUThreadPoolExecutor.h.

Constructor & Destructor Documentation

folly::CPUThreadPoolExecutor::CPUTask::CPUTask ( Func &&  f,
std::chrono::milliseconds  expiration,
Func &&  expireCallback 
)
inlineexplicit

Definition at line 124 of file CPUThreadPoolExecutor.h.

128  : Task(std::move(f), expiration, std::move(expireCallback)),
129  poison(false) {}
auto f
constexpr detail::Map< Move > move
Definition: Base-inl.h:2567
static void expiration()
Task(Func &&func, std::chrono::milliseconds expiration, Func &&expireCallback)
folly::CPUThreadPoolExecutor::CPUTask::CPUTask ( )
inline

Definition at line 130 of file CPUThreadPoolExecutor.h.

131  : Task(nullptr, std::chrono::milliseconds(0), nullptr), poison(true) {}
Task(Func &&func, std::chrono::milliseconds expiration, Func &&expireCallback)

Member Data Documentation

bool folly::CPUThreadPoolExecutor::CPUTask::poison

Definition at line 133 of file CPUThreadPoolExecutor.h.


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