A very simple TaskExecutor that uses a new thread for each incomming task.
More...
#include <ThreadedTaskExecutor.h>
A very simple TaskExecutor that uses a new thread for each incomming task.
- Author
- jwienke
-
swrede
Definition at line 40 of file ThreadedTaskExecutor.h.
rsc::threading::ThreadedTaskExecutor::ThreadedTaskExecutor |
( |
| ) |
|
rsc::threading::ThreadedTaskExecutor::~ThreadedTaskExecutor |
( |
| ) |
|
|
virtual |
void rsc::threading::ThreadedTaskExecutor::executeTask |
( |
TaskPtr |
task, |
|
|
const boost::uint64_t & |
delayMus |
|
) |
| |
|
staticprivate |
void rsc::threading::ThreadedTaskExecutor::schedule |
( |
TaskPtr |
t | ) |
|
|
virtual |
void rsc::threading::ThreadedTaskExecutor::schedule |
( |
TaskPtr |
t, |
|
|
const boost::uint64_t & |
delayMus |
|
) |
| |
|
virtual |
Schedules a new task to be executed after the specified delay.
- Parameters
-
t | new task to schedule |
delayMus | the delay after which the task should start |
- Exceptions
-
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 |
Implements rsc::threading::TaskExecutor.
Definition at line 46 of file ThreadedTaskExecutor.cpp.
The documentation for this class was generated from the following files: