|
Geant4 11.3.0
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.
| PTL::ThreadData::ThreadData | ( | ThreadPool * | tp | ) |
|
default |
|
static |
Definition at line 31 of file ThreadData.cc.
Referenced by PTL::TaskGroup< Tp, Arg, MaxDepth >::exec(), PTL::UserTaskQueue::ExecuteOnAllThreads(), PTL::UserTaskQueue::ExecuteOnSpecificThreads(), PTL::internal::get_task_depth(), PTL::TaskGroup< Tp, Arg, MaxDepth >::local_exec(), and PTL::TaskGroup< Tp, Arg, MaxDepth >::wait().
| void PTL::ThreadData::update | ( | ) |
Definition at line 49 of file ThreadData.cc.
| VUserTaskQueue* PTL::ThreadData::current_queue = nullptr |
Definition at line 152 of file ThreadData.hh.
Referenced by 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 ThreadData(), and 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 ThreadData(), 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::UserTaskQueue::InsertTask(), and PTL::TaskGroup< Tp, Arg, MaxDepth >::wait().