|
wavelength 1.0.0
|
Tasks that run side by side until each one ends. More...
#include <tasklist.h>
Public Member Functions | |
| ~TaskList () | |
| Stop and delete every task. | |
| void | Add (Task *pTask) |
| Append a task and start it. | |
| void | Poll () |
| Poll every task, and stop and delete each one that is no longer running. | |
| const std::list< std::unique_ptr< Task > > & | GetTasks () const |
Tasks that run side by side until each one ends.
The class has no RTTI, and the name is inferred. The list owns the tasks.
| TaskList::~TaskList | ( | ) |
Stop and delete every task.
| void TaskList::Add | ( | Task * | pTask | ) |
Append a task and start it.
| pTask | The task. |
| void TaskList::Poll | ( | ) |
Poll every task, and stop and delete each one that is no longer running.
|
inline |