#include <generic_executor_ref.hpp>
template<class Executor >
type-erasure to store the works to do
template<class Executor >
executor is not copyable.
template<class Executor >
- Effects
- Destroys the executor.
- Synchronization
- The completion of all the closures happen before the completion of the executor destructor.
template<class Executor >
- Effects
- Close the
executor
for submissions. The worker threads will work until there is no more closures to run.
Implements boost::executors::executor.
template<class Executor >
template<typename Pred >
bool boost::executors::executor::reschedule_until |
( |
Pred const & |
pred | ) |
|
|
inlineinherited |
template<class Executor >
- Effects
- The specified closure will be scheduled for execution at some point in the future. If invoked closure throws an exception the executor will call std::terminate, as is the case with threads.
- Synchronization
- Ccompletion of closure on a particular thread happens before destruction of thread's thread local variables.
- Throws
sync_queue_is_closed
if the thread pool is closed. Whatever exception that can be throw while storing the closure.
Implements boost::executors::executor.
References boost::move().
void boost::executors::executor::submit |
( |
void(*)() |
closure | ) |
|
|
inlineinherited |
- Requires
Closure
is a model of Callable(void()) and a model of CopyConstructible/MoveConstructible.
- Effects
- The specified closure will be scheduled for execution at some point in the future. If invoked closure throws an exception the thread pool will call std::terminate, as is the case with threads.
- Synchronization
- Completion of closure on a particular thread happens before destruction of thread's thread local variables.
- Throws
sync_queue_is_closed
if the thread pool is closed. Whatever exception that can be throw while storing the closure.
References boost::move(), and boost::executors::executor::submit().
template<typename Closure >
void boost::executors::executor::submit |
( |
BOOST_THREAD_RV_REF(Closure) |
closure | ) |
|
|
inlineinherited |
template<class Executor >
- Effects
- Try to execute one task.
- Returns
- Whether a task has been executed.
- Throws
- Whatever the current task constructor throws or the task() throws.
Implements boost::executors::executor.
The documentation for this class was generated from the following file: