Geant4 11.2.2
Toolkit for the simulation of the passage of particles through matter
|
The task class is supplied to thread_pool. More...
#include <Task.hh>
Public Types | |
using | this_type = PackagedTask<RetT, Args...> |
using | promise_type = std::promise<RetT> |
using | future_type = std::future<RetT> |
using | packaged_task_type = std::packaged_task<RetT(Args...)> |
using | result_type = RetT |
using | tuple_type = std::tuple<Args...> |
Public Types inherited from PTL::TaskFuture< RetT > | |
using | promise_type = std::promise<RetT> |
using | future_type = std::future<RetT> |
using | result_type = RetT |
Public Types inherited from PTL::VTask | |
using | tid_type = std::thread::id |
using | size_type = size_t |
using | void_func_t = std::function<void()> |
Public Member Functions | |
template<typename FuncT > | |
PackagedTask (FuncT func, Args... args) | |
template<typename FuncT > | |
PackagedTask (bool _is_native, intmax_t _depth, FuncT func, Args... args) | |
~PackagedTask () override=default | |
PackagedTask (const PackagedTask &)=delete | |
PackagedTask & | operator= (const PackagedTask &)=delete |
PackagedTask (PackagedTask &&) noexcept=default | |
PackagedTask & | operator= (PackagedTask &&) noexcept=default |
void | operator() () final |
future_type | get_future () final |
void | wait () final |
RetT | get () final |
Public Member Functions inherited from PTL::TaskFuture< RetT > | |
template<typename... Args> | |
TaskFuture (Args &&... args) | |
~TaskFuture () override=default | |
TaskFuture (const TaskFuture &)=delete | |
TaskFuture & | operator= (const TaskFuture &)=delete |
TaskFuture (TaskFuture &&) noexcept=default | |
TaskFuture & | operator= (TaskFuture &&) noexcept=default |
Public Member Functions inherited from PTL::VTask | |
VTask (bool _is_native, intmax_t _depth) | |
VTask ()=default | |
virtual | ~VTask ()=default |
VTask (const VTask &)=delete | |
VTask & | operator= (const VTask &)=delete |
VTask (VTask &&)=default | |
VTask & | operator= (VTask &&)=default |
bool | is_native_task () const |
intmax_t | depth () const |
Additional Inherited Members | |
Protected Attributes inherited from PTL::VTask | |
bool | m_is_native = false |
intmax_t | m_depth = 0 |
void_func_t | m_func = []() {} |
The task class is supplied to thread_pool.
using PTL::PackagedTask< RetT, Args >::future_type = std::future<RetT> |
using PTL::PackagedTask< RetT, Args >::packaged_task_type = std::packaged_task<RetT(Args...)> |
using PTL::PackagedTask< RetT, Args >::promise_type = std::promise<RetT> |
using PTL::PackagedTask< RetT, Args >::result_type = RetT |
using PTL::PackagedTask< RetT, Args >::this_type = PackagedTask<RetT, Args...> |
using PTL::PackagedTask< RetT, Args >::tuple_type = std::tuple<Args...> |
|
inline |
|
inline |
Definition at line 100 of file Task.hh.
|
overridedefault |
|
delete |
|
defaultnoexcept |
|
inlinefinalvirtual |
Implements PTL::TaskFuture< RetT >.
Definition at line 119 of file Task.hh.
|
inlinefinalvirtual |
Implements PTL::TaskFuture< RetT >.
Definition at line 117 of file Task.hh.
|
inlinefinalvirtual |
Implements PTL::VTask.
Definition at line 116 of file Task.hh.
|
delete |
|
defaultnoexcept |
|
inlinefinalvirtual |
Implements PTL::TaskFuture< RetT >.
Definition at line 118 of file Task.hh.