Back to reference
A task_executor that processes its task queue in its own thread
Defined in wigwag/thread_task_executor.hpp
template < typename ExceptionHandlingPolicy_ = exception_handling::default_ > class basic_thread_task_executor : public task_executor { public: template < typename... Args_ > basic_thread_task_executor(Args_&... args); void add_task(const std::function<void()>& task); }; using thread_task_executor = basic_thread_task_executor<>;
template < typename... Args_ > basic_thread_task_executor(Args_&... args);
Forwards the arguments to the exception_handling policy constructor.
Arguments:
void add_task(const std::function<void()>& task);
Puts a task into a queue.
Thread safety: This is a thread-safe method.
There was an error while loading. Please reload this page.