codex
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages Concepts
thread_pool Class Reference

Classes

struct  thread_data
 

Public Member Functions

 thread_pool (std::size_t n)
 
 ~thread_pool ()
 
auto schedule ()
 

Private Member Functions

void thread_loop (std::size_t i)
 
void enqueue (std::coroutine_handle<> h)
 

Private Attributes

std::vector< thread_datav = {}
 
std::queue< std::coroutine_handle<> > q = {}
 
std::mutex m = {}
 
std::condition_variable c = {}
 

Constructor & Destructor Documentation

◆ thread_pool()

thread_pool::thread_pool ( std::size_t n)
explicit

◆ ~thread_pool()

thread_pool::~thread_pool ( )

Member Function Documentation

◆ enqueue()

void thread_pool::enqueue ( std::coroutine_handle<> h)
private
Here is the caller graph for this function:

◆ schedule()

auto thread_pool::schedule ( )
Here is the call graph for this function:
Here is the caller graph for this function:

◆ thread_loop()

void thread_pool::thread_loop ( std::size_t i)
private
Here is the call graph for this function:

Member Data Documentation

◆ c

std::condition_variable thread_pool::c = {}
private

◆ m

std::mutex thread_pool::m = {}
private

◆ q

std::queue<std::coroutine_handle<> > thread_pool::q = {}
private

◆ v

std::vector<thread_data> thread_pool::v = {}
private

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