transwarp
|
A base class for a user-defined functor that needs access to the associated task or a cancel point to stop a task while it's running. More...
#include <transwarp.h>
Protected Member Functions | |
const transwarp::itask & | transwarp_task () const noexcept |
The associated task (only to be called after the task was constructed) | |
transwarp::itask & | transwarp_task () noexcept |
The associated task (only to be called after the task was constructed) | |
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 (only to be called after the task was constructed) | |
Friends | |
template<bool > | |
struct | transwarp::detail::assign_task_if_impl |
A base class for a user-defined functor that needs access to the associated task or a cancel point to stop a task while it's running.