proxygen
folly::ThreadPoolExecutor::Thread Struct Reference

#include <ThreadPoolExecutor.h>

Inheritance diagram for folly::ThreadPoolExecutor::Thread:
folly::ThreadPoolExecutor::ThreadHandle

Public Member Functions

 Thread (ThreadPoolExecutor *pool)
 
 ~Thread () override=default
 
- Public Member Functions inherited from folly::ThreadPoolExecutor::ThreadHandle
virtual ~ThreadHandle ()=default
 

Public Attributes

uint64_t id
 
std::thread handle
 
bool idle
 
std::chrono::steady_clock::time_point lastActiveTime
 
folly::Baton startupBaton
 
std::shared_ptr< TaskStatsCallbackRegistrytaskStatsCallbacks
 

Static Public Attributes

static std::atomic< uint64_tnextId
 

Detailed Description

Definition at line 169 of file ThreadPoolExecutor.h.

Constructor & Destructor Documentation

folly::ThreadPoolExecutor::Thread::Thread ( ThreadPoolExecutor pool)
inlineexplicit

Definition at line 171 of file ThreadPoolExecutor.h.

172  : id(nextId++),
173  handle(),
174  idle(true),
176  taskStatsCallbacks(pool->taskStatsCallbacks_) {}
std::chrono::steady_clock::time_point now()
std::shared_ptr< TaskStatsCallbackRegistry > taskStatsCallbacks
std::chrono::steady_clock::time_point lastActiveTime
static std::atomic< uint64_t > nextId
folly::ThreadPoolExecutor::Thread::~Thread ( )
overridedefault

Member Data Documentation

std::thread folly::ThreadPoolExecutor::Thread::handle

Definition at line 182 of file ThreadPoolExecutor.h.

uint64_t folly::ThreadPoolExecutor::Thread::id

Definition at line 181 of file ThreadPoolExecutor.h.

bool folly::ThreadPoolExecutor::Thread::idle

Definition at line 183 of file ThreadPoolExecutor.h.

std::chrono::steady_clock::time_point folly::ThreadPoolExecutor::Thread::lastActiveTime

Definition at line 184 of file ThreadPoolExecutor.h.

std::atomic< uint64_t > folly::ThreadPoolExecutor::Thread::nextId
static

Definition at line 180 of file ThreadPoolExecutor.h.

Referenced by folly::ThreadPoolExecutor::getName().

folly::Baton folly::ThreadPoolExecutor::Thread::startupBaton

Definition at line 185 of file ThreadPoolExecutor.h.

std::shared_ptr<TaskStatsCallbackRegistry> folly::ThreadPoolExecutor::Thread::taskStatsCallbacks

Definition at line 186 of file ThreadPoolExecutor.h.


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