Public Member Functions |
| enqueued_task (std::function< void()> _task=std::function< void()>()) |
| Default constructor.
|
void | operator() () |
| Invokes the callable, setting the stl_future to the value it returns.
|
bool | valid () const noexcept |
| Returns true if valid.
|
void | swap (enqueued_task_impl &o) noexcept |
| Swaps contents with another instance.
|
void | reset () |
| Resets the contents.
|
void | set_task (std::function< void()> _task) |
| Sets the task.
|
const shared_future< void > & | get_future () const |
| Returns the shared stl_future corresponding to the stl_future return value of the task.
|
void | set_future_value (T v) |
| Sets the shared stl_future corresponding to the stl_future return value of the task.
|
void | set_future_value () |
void | set_future_exception (exception_ptr e) |
| Sets the shared stl_future corresponding to the stl_future return value of the task.
|
void | disable_auto_set_future (bool v=true) |
| Disables the task setting the shared stl_future return value.
|
Protected Member Functions |
void | validate () const |
Protected Attributes |
std::shared_ptr< Private > | p |
template<>
class boost::afio::enqueued_task< void()>
Definition at line 219 of file afio.hpp.