summaryrefslogtreecommitdiff
path: root/include/TaskMan.h
blob: e1c59d08e42df8a17cc12482e363ad15476b8492 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
#ifndef __TASKMAN_H__
#define __TASKMAN_H__
#ifdef __cplusplus

#include <Task.h>
#include <vector.h>

class TaskMan : public Base {
  public:
    static int AddTask(Task *);
    static void Init() throw (GeneralException);
    static void MainLoop() throw (GeneralException);

  private:
    typedef vector<Task *> TaskList_t;
    static TaskList_t TaskList;
    static TaskList_t Zombies;
    static int number;
    static bool inited;
};

#else
#error This only works with a C++ compiler
#endif
#endif