diff options
-rw-r--r-- | include/TaskMan.h | 5 | ||||
-rw-r--r-- | lib/TaskMan.cc | 10 |
2 files changed, 13 insertions, 2 deletions
diff --git a/include/TaskMan.h b/include/TaskMan.h index db9a949..29b6cc1 100644 --- a/include/TaskMan.h +++ b/include/TaskMan.h @@ -17,7 +17,7 @@ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ -/* $Id: TaskMan.h,v 1.26 2007-12-20 17:07:11 pixel Exp $ */ +/* $Id: TaskMan.h,v 1.27 2007-12-25 12:21:19 pixel Exp $ */ #ifndef __TASKMAN_H__ #define __TASKMAN_H__ @@ -50,6 +50,9 @@ class TaskMan : public Base { static int Eprocess(); static int Estatus(); static void SigChild(); + + static std::vector<Task *>::iterator begin(); + static std::vector<Task *>::iterator end(); private: class w4ha_t { diff --git a/lib/TaskMan.cc b/lib/TaskMan.cc index c83cf26..df37a04 100644 --- a/lib/TaskMan.cc +++ b/lib/TaskMan.cc @@ -17,7 +17,7 @@ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ -/* $Id: TaskMan.cc,v 1.49 2007-12-20 23:20:46 pixel Exp $ */ +/* $Id: TaskMan.cc,v 1.50 2007-12-25 12:21:19 pixel Exp $ */ #ifndef _WIN32 #include <signal.h> @@ -384,6 +384,14 @@ std::vector<Task *>::iterator TaskMan::FindTask(Task * t) throw (GeneralExceptio throw TaskNotFound(); } +std::vector<Task *>::iterator TaskMan::begin() { + return TaskList.begin(); +} + +std::vector<Task *>::iterator TaskMan::end() { + return TaskList.end(); +} + // Should only be called by the destructor of a task. void TaskMan::RemoveFromWatches(Task * t) { if (!w4ha.empty()) { |