Dispatch Queue
Dispatch Queue / Thread Pool implementation for C++11 with built-in C++20 coroutine support
 
Loading...
Searching...
No Matches
dispatch_queue::detail::worker_pool Class Reference

Public Member Functions

template<typename Fn>
 worker_pool (pending_task_queue &task_queue, int thread_count, Fn &&worker_init)
 
 worker_pool (const worker_pool &)=delete
 
worker_pooloperator= (const worker_pool &)=delete
 
int thread_count () const
 
size_t size ()
 
void enqueue_task (pending_task &&task, bool run_on_main_loop)
 
std::deque< pending_task > pop_main_loop_tasks ()
 
void clear ()
 
void shutdown ()
 
void wait ()
 
template<class Rep, class Period>
bool wait_for (const std::chrono::duration< Rep, Period > &timeout_duration)
 
template<class Clock, class Duration>
bool wait_until (const std::chrono::time_point< Clock, Duration > &timeout_time)
 

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