#include <SimpleScheduler.hpp>
Public Types | |
typedef SimpleScheduler< E > | OfType |
typedef E::Task | Task |
typedef E::Queue | Queue |
typedef E | Executor |
Public Member Functions | |
SimpleScheduler () | |
Constructs SimpleScheduler with default implementation of Queue and Executor. | |
SimpleScheduler (const Queue &queue) | |
Constructs SimpleScheduler using passed Queue and default Executor. | |
SimpleScheduler (const Executor &exec) | |
Constructs SimpleScheduler using passed Executor and default Queue. | |
SimpleScheduler (const Queue &queue, const Executor &exec) | |
Constructs SimpleScheduler using passed Queue and Executor. | |
~SimpleScheduler () throw () | |
Destructs instance of SimpleScheduler object. | |
SimpleScheduler< E > & | push (const Task &task) |
Schedules a task for execution. | |
SimpleScheduler< E > & | operator<< (const Task &task) |
Schedules a task for execution (synonym for push). |
Use Scheduler class to create objects that will serve as task schedulers. Scheduler uses two other sub-components, Queue and Executor, to carry out queuing and execution of scheduled tasks.
|
Constructs SimpleScheduler using passed Queue and default Executor.
|
|
Constructs SimpleScheduler using passed Executor and default Queue.
|
|
Constructs SimpleScheduler using passed Queue and Executor.
|
|
Destructs instance of SimpleScheduler object. Shuts down the Queue and Executor. When it's finished, all tasks are removed from the queue and no threads are running.
|
|
Schedules a task for execution (synonym for push).
|
|
Schedules a task for execution.
|