Geant4 11.1.1
Toolkit for the simulation of the passage of particles through matter
Loading...
Searching...
No Matches
PTL::ThreadPool::Config Struct Reference

#include <ThreadPool.hh>

Public Member Functions

 Config (bool, bool, bool, int, int, size_type, VUserTaskQueue *, affinity_func_t, initialize_func_t, finalize_func_t)
 

Public Attributes

bool init = true
 
bool use_tbb = f_use_tbb()
 
bool use_affinity = f_use_cpu_affinity()
 
int verbose = f_verbose()
 
int priority = f_thread_priority()
 
size_type pool_size = f_default_pool_size()
 
VUserTaskQueuetask_queue = nullptr
 
affinity_func_t set_affinity = affinity_functor()
 
initialize_func_t initializer = initialization_functor()
 
finalize_func_t finalizer = finalization_functor()
 

Detailed Description

Definition at line 139 of file ThreadPool.hh.

Constructor & Destructor Documentation

◆ Config()

ThreadPool::Config::Config ( bool  _init,
bool  _use_tbb,
bool  _use_affinity,
int  _verbose,
int  _prio,
size_type  _size,
VUserTaskQueue _task_queue,
affinity_func_t  _affinity_func,
initialize_func_t  _init_func,
finalize_func_t  _fini_func 
)

Definition at line 239 of file ThreadPool.cc.

243: init{ _init }
244, use_tbb{ _use_tbb }
245, use_affinity{ _use_affinity }
246, verbose{ _verbose }
247, priority{ _prio }
248, pool_size{ _size }
249, task_queue{ _task_queue }
250, set_affinity{ std::move(_affinity_func) }
251, initializer{ std::move(_init_func) }
252, finalizer{ std::move(_fini_func) }
253{}
VUserTaskQueue * task_queue
Definition: ThreadPool.hh:152
affinity_func_t set_affinity
Definition: ThreadPool.hh:153
initialize_func_t initializer
Definition: ThreadPool.hh:154
finalize_func_t finalizer
Definition: ThreadPool.hh:155

Member Data Documentation

◆ finalizer

finalize_func_t PTL::ThreadPool::Config::finalizer = finalization_functor()

Definition at line 155 of file ThreadPool.hh.

◆ init

bool PTL::ThreadPool::Config::init = true

Definition at line 146 of file ThreadPool.hh.

Referenced by PTL::ThreadPool::ThreadPool().

◆ initializer

initialize_func_t PTL::ThreadPool::Config::initializer = initialization_functor()

Definition at line 154 of file ThreadPool.hh.

◆ pool_size

size_type PTL::ThreadPool::Config::pool_size = f_default_pool_size()

Definition at line 151 of file ThreadPool.hh.

Referenced by PTL::ThreadPool::ThreadPool().

◆ priority

int PTL::ThreadPool::Config::priority = f_thread_priority()

Definition at line 150 of file ThreadPool.hh.

◆ set_affinity

affinity_func_t PTL::ThreadPool::Config::set_affinity = affinity_functor()

Definition at line 153 of file ThreadPool.hh.

◆ task_queue

VUserTaskQueue* PTL::ThreadPool::Config::task_queue = nullptr

Definition at line 152 of file ThreadPool.hh.

◆ use_affinity

bool PTL::ThreadPool::Config::use_affinity = f_use_cpu_affinity()

Definition at line 148 of file ThreadPool.hh.

◆ use_tbb

bool PTL::ThreadPool::Config::use_tbb = f_use_tbb()

Definition at line 147 of file ThreadPool.hh.

◆ verbose

int PTL::ThreadPool::Config::verbose = f_verbose()

Definition at line 149 of file ThreadPool.hh.


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