A base class for a user-defined functor that needs access to the node associated to the task or a cancel point to stop a task while it's running. More...
#include <transwarp.h>
Protected Member Functions | |
const std::shared_ptr < transwarp::node > & | transwarp_node () const noexcept |
The node associated to the task. | |
void | transwarp_cancel_point () const |
If the associated task is canceled then this will throw transwarp::task_canceled which will stop the task while it's running. | |
Friends | |
template<bool > | |
struct | transwarp::detail::assign_node_if_impl |
A base class for a user-defined functor that needs access to the node associated to the task or a cancel point to stop a task while it's running.