#include <dispatcher_impl.h>
Definition at line 29 of file dispatcher_impl.h.
| WORK_API WorkImpl_Dispatcher::WorkImpl_Dispatcher |
( |
| ) |
|
Construct a new dispatcher.
| WORK_API WorkImpl_Dispatcher::~WorkImpl_Dispatcher |
( |
| ) |
|
|
noexcept |
Wait() for any pending tasks to complete, then destroy the dispatcher.
Cancel remaining work and return immediately.
Calling this function affects task that are being run directly by this dispatcher. If any of these tasks are using their own dispatchers to run tasks, these dispatchers will not be affected and these tasks will run to completion, unless they are also explicitly cancelled.
This call does not block. Call Wait() after Cancel() to wait for pending tasks to complete.
template<class Callable >
| void WorkImpl_Dispatcher::Run |
( |
Callable && |
c | ) |
|
|
inline |
Block until the work started by Run() completes.
| tbb::task_group_context WorkImpl_Dispatcher::_context |
| tbb::empty_task* WorkImpl_Dispatcher::_rootTask |
The documentation for this class was generated from the following file: