RSC
0.17.1
|
Interface for different scheduling strategies for Task instances. More...
#include <TaskExecutor.h>
Public Member Functions | |
virtual void | schedule (TaskPtr t)=0 |
Schedules the new task. More... | |
virtual void | schedule (TaskPtr t, const boost::uint64_t &delayMus)=0 |
Schedules a new task to be executed after the specified delay. More... | |
Interface for different scheduling strategies for Task instances.
Implementations must not schedule the task if it is already canceled when being scheduled.
Implementations must execute the task even if it is canceled before within the time of the specified delay.
Definition at line 50 of file TaskExecutor.h.
|
pure virtual |
Schedules the new task.
t | the new task to schedule |
std::invalid_argument | task to schedule is already canceled |
Implemented in rsc::threading::ThreadedTaskExecutor.
|
pure virtual |
Schedules a new task to be executed after the specified delay.
t | new task to schedule |
delayMus | the delay after which the task should start |
rsc::misc::UnsupportedOperationException | implementations may throw this exception to indicate that a scheduling of tasks with a specified delay is not supported |
std::invalid_argument | task to schedule is already canceled |
Implemented in rsc::threading::ThreadedTaskExecutor.