blob: 033cadfc75d6fafa30ab7b58e6a8ee3f21d4cf6a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
#include "ChainTasks.h"
ChainTasks::ChainTasks(tasklist_t _tasklist) : tasklist(_tasklist) {
SetBurst();
pos = tasklist.begin();
}
ChainTasks::~ChainTasks() {
}
String ChainTasks::GetName() {
return "ChainTask";
}
int ChainTasks::Do() throw (GeneralException) {
if (pos == tasklist.end())
return TASK_DONE;
WaitFor(*pos);
pos++;
return TASK_ON_HOLD;
}
|