diff example/basic/main.cc @ 400:984e7890db0c draft

Fix examples.
author Shinji KONO <kono@ie.u-ryukyu.ac.jp>
date Mon, 21 Sep 2009 18:47:06 +0900
parents 5b995810b86a
children d6ba5ede4fe7
line wrap: on
line diff
--- a/example/basic/main.cc	Mon Sep 21 18:03:31 2009 +0900
+++ b/example/basic/main.cc	Mon Sep 21 18:47:06 2009 +0900
@@ -50,7 +50,7 @@
 }
 
 void
-twice_init(void)
+twice_init(TaskManager *manager)
 {
     HTask *twice;
 
@@ -97,7 +97,7 @@
 }
 
 int
-TMmain(int argc, char *argv[])
+TMmain(TaskManager *manager,int argc, char *argv[])
 {
     if (init(argc, argv) < 0) {
 	return -1;
@@ -108,7 +108,7 @@
     task_init();
 
     for (int i = 0; i < task; ++i) {
-	twice_init();
+	twice_init(manager);
     }
 
     return 0;