The task class is supplied to thread_pool.
More...
#include <Task.hh>
The task class is supplied to thread_pool.
Definition at line 216 of file Task.hh.
◆ future_type
◆ packaged_task_type
typedef std::packaged_task<RetT()> PTL::Task< void, void >::packaged_task_type |
◆ promise_type
◆ result_type
◆ RetT
◆ this_type
◆ Task() [1/3]
template<typename FuncT >
PTL::Task< void, void >::Task |
( |
FuncT && |
func | ) |
|
|
inlineexplicit |
Definition at line 228 of file Task.hh.
230 , m_ptask(std::forward<FuncT>(func))
231 {}
◆ Task() [2/3]
template<typename FuncT >
Definition at line 234 of file Task.hh.
236 , m_ptask(std::forward<FuncT>(func))
237 {}
◆ Task() [3/3]
template<typename FuncT >
Definition at line 240 of file Task.hh.
242 , m_ptask(std::forward<FuncT>(func))
243 {}
◆ ~Task()
◆ get_future()
Definition at line 261 of file Task.hh.
261{ return m_ptask.get_future(); }
◆ is_native_task()
virtual bool PTL::Task< void, void >::is_native_task |
( |
| ) |
const |
|
inlineoverridevirtual |
◆ operator()()
virtual void PTL::Task< void, void >::operator() |
( |
| ) |
|
|
inlinefinalvirtual |
Implements PTL::VTask.
Definition at line 249 of file Task.hh.
250 {
251 m_ptask();
252
253
254
255
256
258 }
The documentation for this class was generated from the following file: