|
Geant4 10.7.0
Toolkit for the simulation of the passage of particles through matter
|
The task class is supplied to thread_pool. More...
#include <Task.hh>
Inheritance diagram for PTL::PackagedTask< RetT, Args >:Public Types | |
| typedef PackagedTask< RetT, Args... > | this_type |
| typedef std::promise< RetT > | promise_type |
| typedef std::future< RetT > | future_type |
| typedef std::packaged_task< RetT(Args...)> | packaged_task_type |
| typedef RetT | result_type |
| typedef std::tuple< Args... > | tuple_type |
Public Types inherited from PTL::VTask | |
| typedef std::thread::id | tid_type |
| typedef size_t | size_type |
| typedef VTask | this_type |
| typedef std::atomic_uintmax_t | count_t |
| typedef VTask * | iterator |
| typedef const VTask * | const_iterator |
| typedef std::function< void()> | void_func_t |
Public Member Functions | |
| template<typename FuncT > | |
| PackagedTask (FuncT &&func, Args... args) | |
| template<typename FuncT > | |
| PackagedTask (VTaskGroup *tg, FuncT &&func, Args... args) | |
| template<typename FuncT > | |
| PackagedTask (ThreadPool *_pool, FuncT &&func, Args... args) | |
| virtual | ~PackagedTask () |
| virtual void | operator() () override |
| future_type | get_future () |
| virtual bool | is_native_task () const override |
Public Member Functions inherited from PTL::VTask | |
| VTask () | |
| VTask (VTaskGroup *task_group) | |
| VTask (ThreadPool *pool) | |
| virtual | ~VTask () |
| virtual void | operator() ()=0 |
| void | operator-- () |
| virtual bool | is_native_task () const |
| virtual ThreadPool * | pool () const |
| VTaskGroup * | group () const |
| iterator | begin () |
| iterator | end () |
| const_iterator | begin () const |
| const_iterator | end () const |
| const_iterator | cbegin () const |
| const_iterator | cend () const |
| intmax_t & | depth () |
| const intmax_t & | depth () const |
Additional Inherited Members | |
Static Protected Member Functions inherited from PTL::VTask | |
| static tid_type | this_tid () |
Protected Attributes inherited from PTL::VTask | |
| intmax_t | m_depth |
| VTaskGroup * | m_group |
| ThreadPool * | m_pool |
| void_func_t | m_func = []() {} |
The task class is supplied to thread_pool.
| typedef std::future<RetT> PTL::PackagedTask< RetT, Args >::future_type |
| typedef std::packaged_task<RetT(Args...)> PTL::PackagedTask< RetT, Args >::packaged_task_type |
| typedef std::promise<RetT> PTL::PackagedTask< RetT, Args >::promise_type |
| typedef RetT PTL::PackagedTask< RetT, Args >::result_type |
| typedef PackagedTask<RetT, Args...> PTL::PackagedTask< RetT, Args >::this_type |
| typedef std::tuple<Args...> PTL::PackagedTask< RetT, Args >::tuple_type |
|
inline |
|
inline |
|
inline |
|
inlinevirtual |
|
inline |
|
inlineoverridevirtual |
|
inlineoverridevirtual |
Implements PTL::VTask.
Definition at line 87 of file Task.hh.