Geant4 11.3.0
Toolkit for the simulation of the passage of particles through matter
|
#include <TaskRunManager.hh>
Public Types | |
using | pointer = TaskRunManager* |
Public Member Functions | |
TaskRunManager (bool useTBB=false) | |
virtual | ~TaskRunManager () |
virtual int | GetNumberOfThreads () const |
virtual size_t | GetNumberActiveThreads () const |
virtual void | Initialize (uint64_t n=std::thread::hardware_concurrency()) |
virtual void | Terminate () |
ThreadPool * | GetThreadPool () const |
TaskManager * | GetTaskManager () const |
bool | IsInitialized () const |
Static Public Member Functions | |
static TaskRunManager * | GetInstance (bool useTBB=false) |
static TaskRunManager * | GetMasterRunManager (bool useTBB=false) |
Protected Attributes | |
bool | m_is_initialized = false |
uint64_t | m_workers = 0 |
bool | m_use_tbb = false |
VUserTaskQueue * | m_task_queue = nullptr |
ThreadPool * | m_thread_pool = nullptr |
TaskManager * | m_task_manager = nullptr |
Definition at line 41 of file TaskRunManager.hh.
Definition at line 44 of file TaskRunManager.hh.
|
explicit |
Definition at line 69 of file TaskRunManager.cc.
Referenced by G4TaskRunManager::G4TaskRunManager().
|
virtual |
Definition at line 79 of file TaskRunManager.cc.
|
static |
Definition at line 62 of file TaskRunManager.cc.
|
static |
Definition at line 53 of file TaskRunManager.cc.
Referenced by PTL::internal::get_default_threadpool(), PTL::TaskManager::GetInstance(), GetInstance(), and PTL::VUserTaskQueue::VUserTaskQueue().
|
inlinevirtual |
Reimplemented in G4SubEvtRunManager, and G4TaskRunManager.
Definition at line 59 of file TaskRunManager.hh.
Referenced by G4TaskRunManager::GetNumberActiveThreads().
|
inlinevirtual |
Reimplemented in G4TaskRunManager.
Definition at line 55 of file TaskRunManager.hh.
Referenced by G4TaskRunManager::GetNumberOfThreads(), and PTL::VUserTaskQueue::VUserTaskQueue().
|
inline |
Definition at line 69 of file TaskRunManager.hh.
Referenced by G4TaskRunManagerKernel::ExecuteWorkerInit(), G4TaskRunManagerKernel::ExecuteWorkerTask(), and G4TaskRunManagerKernel::InitializeWorker().
|
inline |
Definition at line 68 of file TaskRunManager.hh.
Referenced by G4TaskRunManagerKernel::InitializeWorker(), and G4TaskRunManager::SetNumberOfThreads().
|
virtual |
Reimplemented in G4SubEvtRunManager, and G4TaskRunManager.
Definition at line 88 of file TaskRunManager.cc.
Referenced by G4SubEvtRunManager::Initialize(), G4TaskRunManager::Initialize(), and G4TaskRunManager::InitializeThreadPool().
|
inline |
Definition at line 70 of file TaskRunManager.hh.
|
virtual |
Definition at line 114 of file TaskRunManager.cc.
Referenced by G4TaskRunManager::~G4TaskRunManager().
|
protected |
Definition at line 83 of file TaskRunManager.hh.
Referenced by Initialize(), IsInitialized(), and Terminate().
|
protected |
Definition at line 88 of file TaskRunManager.hh.
Referenced by GetTaskManager(), Initialize(), and Terminate().
|
protected |
Definition at line 86 of file TaskRunManager.hh.
Referenced by Initialize().
|
protected |
Definition at line 87 of file TaskRunManager.hh.
Referenced by GetNumberActiveThreads(), GetNumberOfThreads(), GetThreadPool(), Initialize(), and Terminate().
|
protected |
Definition at line 85 of file TaskRunManager.hh.
Referenced by Initialize(), and TaskRunManager().
|
protected |
Definition at line 84 of file TaskRunManager.hh.
Referenced by Initialize(), and TaskRunManager().