Flow
Documentation for the Flow C++ Library
|
A task that can be execute by a thread. Internally, it uses type erasure to store a std::packaged_task. The memory is managed by std::unique_ptr. More...
#include <flow_thread_task.h>
Classes | |
struct | ThreadTaskImp |
struct | ThreadTaskInterface |
Public Member Functions | |
template<typename FuncType> | |
ThreadTask (std::packaged_task< FuncType > task) | |
ThreadTask (ThreadTask &&)=default | |
ThreadTask (const ThreadTask &)=delete | |
ThreadTask & | operator= (ThreadTask &&)=default |
ThreadTask & | operator= (const ThreadTask &)=delete |
~ThreadTask ()=default | |
void | execute () |
Execute this task. |
Private Attributes | |
std::unique_ptr< ThreadTaskInterface > | task_ |
A task that can be execute by a thread. Internally, it uses type erasure to store a std::packaged_task. The memory is managed by std::unique_ptr.
Definition at line 10 of file flow_thread_task.h.
|
inlineexplicit |
Definition at line 32 of file flow_thread_task.h.
References task_.
Referenced by operator=(), operator=(), ThreadTask(), and ThreadTask().
|
default |
References ThreadTask().
|
delete |
References ThreadTask().
|
default |
|
inline |
|
delete |
References ThreadTask().
|
default |
References ThreadTask().
|
private |
Definition at line 28 of file flow_thread_task.h.
Referenced by execute(), and ThreadTask().