1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
#include <TaskMan.h> bool TaskMan::Inited = false; TaskMan::TaskMan() throw (GeneralException) { if (Inited) { throw GeneralException("Another Task Manager is already running, aborting."); } Inited = true; } int TaskMan::AddTask(Task * t) { } void TaskMan::MainLoop() { }