diff example/task_queue/main.cc @ 619:0decff4e867b

RenewTask removal
author Shinji KONO <kono@ie.u-ryukyu.ac.jp>
date Sun, 15 Nov 2009 02:02:30 +0900
parents 58240647b23b
children 60aa3f241b10
line wrap: on
line diff
--- a/example/task_queue/main.cc	Sat Nov 14 21:17:02 2009 +0900
+++ b/example/task_queue/main.cc	Sun Nov 15 02:02:30 2009 +0900
@@ -31,7 +31,7 @@
 Queues queues;
 
 static void
-repeat(void *arg)
+repeat(SchedTask *s, void *arg, void *dm)
 {
     static int count = 4;
     QueuePtr q = (QueuePtr) arg;
@@ -39,7 +39,7 @@
 
     if (count-->0) {
         HTask *t = manager->create_task(HELLO_TASK);
-        t->set_post(repeat, arg);
+        t->set_post(repeat, arg, 0);
         t->add_param(q->i);
         t->add_param((int)arg);
         t->spawn();
@@ -91,7 +91,7 @@
 
 	hello->add_param(i);
 	hello->add_param((int)&queues);
-	hello->set_post(repeat, (void*) &queues);
+	hello->set_post(repeat, (void*) &queues, 0);
 
 	hello->spawn();
     }