From 96122d9b074b3689362570f855a6f8e9a8ed49f4 Mon Sep 17 00:00:00 2001 From: pixel Date: Mon, 21 Jan 2008 08:25:43 +0000 Subject: Adding more debug messages... --- lib/LuaTask.cc | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'lib/LuaTask.cc') diff --git a/lib/LuaTask.cc b/lib/LuaTask.cc index bc6266c..46cbd88 100644 --- a/lib/LuaTask.cc +++ b/lib/LuaTask.cc @@ -17,7 +17,7 @@ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ -/* $Id: LuaTask.cc,v 1.20 2008-01-21 04:04:03 pixel Exp $ */ +/* $Id: LuaTask.cc,v 1.21 2008-01-21 08:25:43 pixel Exp $ */ #include #include @@ -312,9 +312,12 @@ void LuaTaskMan::pushstatics(Lua * L) throw (GeneralException) { class DelayedTask : public Task { public: DelayedTask(Lua * __L, const String & _cmd, int _delay) : L(__L), cmd(_cmd), delay(_delay) { - printm(M_INFO, "Creating object delayedtask, delay = %i seconds.\n", _delay); + printm(M_INFO, "Creating object delayedtask, delay = %i seconds, cmd = " + cmd + ".\n", _delay); SetBurst(); } + ~DelayedTask() { + printm(M_INFO, "DelayedTask: destroying object; current = %i\n", current); + } virtual int Do() throw (GeneralException) { timeval delay_tv = { delay, 0 }; switch(current) { @@ -324,6 +327,7 @@ class DelayedTask : public Task { current = 1; return TASK_ON_HOLD; case 1: + current = 2; printm(M_INFO, "DelayTask: expired, lauching LuaTask with cmd = " + cmd + "\n"); RemoveTimeout(); new LuaTask(L, cmd); -- cgit v1.2.3