|
Geant4
10.07.p01
|
Public Types | |
| template<typename Tp > | |
| using | container_type = std::vector< Tp > |
| template<typename Tp > | |
| using | list_type = std::vector< Tp > |
| typedef VTaskGroup | this_type |
| typedef std::thread::id | tid_type |
| typedef VTask | task_type |
| typedef uintmax_t | size_type |
| typedef Mutex | lock_t |
| typedef std::atomic_intmax_t | atomic_int |
| typedef std::atomic_uintmax_t | atomic_uint |
| typedef Condition | condition_t |
| typedef task_type * | task_pointer |
| typedef container_type < task_pointer > | vtask_list_type |
Public Member Functions | |
| VTaskGroup (ThreadPool *tp=nullptr) | |
| virtual | ~VTaskGroup () |
| VTaskGroup (const this_type &)=delete | |
| VTaskGroup (this_type &&rhs)=default | |
| this_type & | operator= (const this_type &)=delete |
| this_type & | operator= (this_type &&rhs)=default |
| virtual void | wait () |
| intmax_t | operator++ () |
| intmax_t | operator++ (int) |
| intmax_t | operator-- () |
| intmax_t | operator-- (int) |
| intmax_t | size () const |
| std::shared_ptr< condition_t > | task_cond () |
| const uintmax_t & | id () const |
| void | set_pool (ThreadPool *tp) |
| ThreadPool *& | pool () |
| ThreadPool * | pool () const |
| void | clear () |
| virtual bool | is_native_task_group () const |
| virtual bool | is_master () const |
| virtual intmax_t | pending () |
Static Public Member Functions | |
| static void | set_verbose (int level) |
Protected Member Functions | |
| atomic_int & | task_count () |
| const atomic_int & | task_count () const |
Static Protected Member Functions | |
| static tid_type | this_tid () |
Protected Attributes | |
| uintmax_t | m_id |
| ThreadPool * | m_pool |
| std::shared_ptr< atomic_int > | m_tot_task_count = std::make_shared<atomic_int>(0) |
| std::shared_ptr< condition_t > | m_task_cond = std::make_shared<condition_t>() |
| std::shared_ptr< lock_t > | m_task_lock = std::make_shared<lock_t>() |
| tid_type | m_main_tid |
| vtask_list_type | vtask_list |
Static Protected Attributes | |
| static int | f_verbose |
| using container_type = std::vector<Tp> |
| using list_type = std::vector<Tp> |
| typedef VTaskGroup this_type |
| typedef std::thread::id tid_type |
| typedef uintmax_t size_type |
| typedef std::atomic_intmax_t atomic_int |
| typedef std::atomic_uintmax_t atomic_uint |
| typedef Condition condition_t |
| typedef task_type* task_pointer |
| typedef container_type<task_pointer> vtask_list_type |
|
explicit |
|
virtual |
|
delete |
|
default |
|
virtual |
Referenced by TaskGroup< Tp, Arg >::join().
| intmax_t operator++ | ( | ) |
Referenced by TaskGroup< Tp, Arg >::operator+=().
| intmax_t operator++ | ( | int | ) |
References VTaskGroup::m_tot_task_count.
| intmax_t operator-- | ( | ) |
| intmax_t operator-- | ( | int | ) |
References VTaskGroup::m_tot_task_count.
| intmax_t size | ( | ) | const |
References VTaskGroup::m_tot_task_count.
| std::shared_ptr<condition_t> task_cond | ( | ) |
References VTaskGroup::m_task_cond.
| const uintmax_t& id | ( | ) | const |
References VTaskGroup::m_id.
| void set_pool | ( | ThreadPool * | tp | ) |
References VTaskGroup::m_pool, and G4InuclParticleNames::tp.
| ThreadPool*& pool | ( | ) |
References VTaskGroup::m_pool.
| ThreadPool* pool | ( | ) | const |
References VTaskGroup::m_pool.
| void clear | ( | ) |
References VTaskGroup::vtask_list.
Referenced by TaskGroup< Tp, Arg >::clear().
|
virtual |
|
virtual |
References VTaskGroup::m_main_tid, and VTaskGroup::this_tid().
|
virtual |
References VTaskGroup::m_tot_task_count.
References VTaskGroup::f_verbose.
|
staticprotected |
Referenced by VTaskGroup::is_master().
|
protected |
References VTaskGroup::m_tot_task_count.
|
protected |
References VTaskGroup::m_tot_task_count.
|
protected |
Referenced by VTaskGroup::id().
|
protected |
Referenced by TaskGroup< Tp, Arg >::exec(), VTaskGroup::pool(), TaskGroup< Tp, Arg >::run(), and VTaskGroup::set_pool().
|
protected |
|
protected |
Referenced by VTaskGroup::task_cond().
|
protected |
Referenced by VTaskGroup::is_master().
|
protected |
Referenced by VTaskGroup::clear(), and TaskGroup< Tp, Arg >::operator+=().
|
staticprotected |
Referenced by VTaskGroup::set_verbose().