7 #ifndef __FWTHREAD_TASKHANDLER_HXX__ 8 #define __FWTHREAD_TASKHANDLER_HXX__ 14 m_task(
std::move(task))
20 m_task(
std::move(that.m_task))
42 #endif //__FWTHREAD_TASKHANDLER_HXX__
TaskHandler(std::packaged_task< R > &task)
Constructor, moves task.
void operator()() const
Executes intern packaged task.
This class encapsulates packaged task and provides a copy constructor.
std::function< void() > moveTaskIntoFunction(std::packaged_task< R > &task)
Encapsulate a packaged_task into a boost function to be easily posted on a worker.
This namespace fwThread provides few tools to execute asynchronous tasks on different threads...