#include <executor.hpp>
type-erasure to store the works to do
boost::executors::executor::executor |
( |
| ) |
|
|
inline |
executor is not copyable.
virtual boost::executors::executor::~executor |
( |
| ) |
|
|
inlinevirtual |
- Effects
- Destroys the executor.
- Synchronization
- The completion of all the closures happen before the completion of the executor destructor.
virtual void boost::executors::executor::close |
( |
| ) |
|
|
pure virtual |
virtual bool boost::executors::executor::closed |
( |
| ) |
|
|
pure virtual |
template<typename Pred >
bool boost::executors::executor::reschedule_until |
( |
Pred const & |
pred | ) |
|
|
inline |
- Requires
- This must be called from an scheduled task.
- Effects
- Reschedule functions until pred()
References try_executing_one().
virtual void boost::executors::executor::submit |
( |
BOOST_THREAD_RV_REF(work) |
closure | ) |
|
|
pure virtual |
- 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.
Implemented in boost::executors::executor_adaptor< Executor >, and boost::executors::executor_ref< Executor >.
Referenced by submit().
void boost::executors::executor::submit |
( |
void(*)() |
closure | ) |
|
|
inline |
- 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 submit().
template<typename Closure >
void boost::executors::executor::submit |
( |
BOOST_THREAD_RV_REF(Closure) |
closure | ) |
|
|
inline |
virtual bool boost::executors::executor::try_executing_one |
( |
| ) |
|
|
pure virtual |
The documentation for this class was generated from the following file: