summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorpixel <pixel>2008-01-21 08:25:43 +0000
committerpixel <pixel>2008-01-21 08:25:43 +0000
commit96122d9b074b3689362570f855a6f8e9a8ed49f4 (patch)
tree733d60a872d88d42af984b11cb1d755e10ad68d7
parenta99408217ff9a1095488cb302596450485bfd2ff (diff)
Adding more debug messages...
-rw-r--r--lib/LuaTask.cc8
1 files changed, 6 insertions, 2 deletions
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 <LuaTask.h>
#include <LuaHandle.h>
@@ -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);