Geant4 11.2.2
Toolkit for the simulation of the passage of particles through matter
|
#include <ThreadData.hh>
Public Types | |
template<typename Tp > | |
using | TaskStack = std::deque<Tp> |
Public Member Functions | |
ThreadData (ThreadPool *tp) | |
~ThreadData ()=default | |
void | update () |
Static Public Member Functions | |
static ThreadData *& | GetInstance () |
Public Attributes | |
bool | is_main = false |
bool | within_task = false |
intmax_t | task_depth = 0 |
ThreadPool * | thread_pool = nullptr |
VUserTaskQueue * | current_queue = nullptr |
TaskStack< VUserTaskQueue * > | queue_stack = {} |
Definition at line 136 of file ThreadData.hh.
using PTL::ThreadData::TaskStack = std::deque<Tp> |
Definition at line 140 of file ThreadData.hh.
ThreadData::ThreadData | ( | ThreadPool * | tp | ) |
Definition at line 40 of file ThreadData.cc.
|
default |
|
static |
Definition at line 32 of file ThreadData.cc.
Referenced by PTL::UserTaskQueue::ExecuteOnAllThreads(), PTL::UserTaskQueue::ExecuteOnSpecificThreads(), PTL::internal::get_task_depth(), and PTL::ThreadPool::insert().
void ThreadData::update | ( | ) |
Definition at line 50 of file ThreadData.cc.
Referenced by PTL::ThreadPool::execute_thread().
VUserTaskQueue* PTL::ThreadData::current_queue = nullptr |
Definition at line 152 of file ThreadData.hh.
Referenced by PTL::ThreadPool::execute_thread(), ThreadData(), update(), and PTL::TaskGroup< Tp, Arg, MaxDepth >::wait().
bool PTL::ThreadData::is_main = false |
Definition at line 148 of file ThreadData.hh.
Referenced by PTL::TaskGroup< Tp, Arg, MaxDepth >::wait().
TaskStack<VUserTaskQueue*> PTL::ThreadData::queue_stack = {} |
intmax_t PTL::ThreadData::task_depth = 0 |
Definition at line 150 of file ThreadData.hh.
Referenced by PTL::internal::get_task_depth().
ThreadPool* PTL::ThreadData::thread_pool = nullptr |
Definition at line 151 of file ThreadData.hh.
Referenced by update(), and PTL::TaskGroup< Tp, Arg, MaxDepth >::wait().
bool PTL::ThreadData::within_task = false |
Definition at line 149 of file ThreadData.hh.
Referenced by PTL::ThreadPool::execute_thread(), PTL::UserTaskQueue::InsertTask(), and PTL::TaskGroup< Tp, Arg, MaxDepth >::wait().