Classes | Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
util::detail::SingleProducerTaskPoolBase Class Reference
+ Inheritance diagram for util::detail::SingleProducerTaskPoolBase:
+ Collaboration diagram for util::detail::SingleProducerTaskPoolBase:

Classes

struct  RoutineConfig
 
struct  ThreadInfo
 
struct  ThreadLocalInterface
 

Public Member Functions

 SingleProducerTaskPoolBase (std::string name, unsigned per_thread_capacity, unsigned num_threads=0)
 
void WaitForTasksToComplete ()
 
unsigned thread_count () const
 
unsigned QueueSize () const
 

Protected Member Functions

void LaunchThreads ()
 
void JoinThreads ()
 
unsigned FindMostFreeThread () const
 

Protected Attributes

std::string base_name_
 
std::atomic_bool start_cancel_
 
unsigned per_thread_capacity_
 
unsigned thread_count_
 
std::unique_ptr< ThreadInfo[]> thread_info_
 
std::vector< std::unique_ptr< ThreadLocalInterface > > thread_interfaces_
 

Detailed Description

Definition at line 79 of file sp_task_pool.h.


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