diff example/word_count/main.cc @ 742:4c2e6493b008

continue..
author Shinji KONO <kono@ie.u-ryukyu.ac.jp>
date Tue, 12 Jan 2010 10:22:45 +0900
parents a969d3cdd20a
children fc9c3b23d875
line wrap: on
line diff
--- a/example/word_count/main.cc	Tue Jan 12 10:18:48 2010 +0900
+++ b/example/word_count/main.cc	Tue Jan 12 10:22:45 2010 +0900
@@ -124,9 +124,9 @@
     for (i = 0; i < task_num; i+=task_size) {
 	HTask *task_main = manager->create_task_array(TASK_EXEC,task_size,2,1,1);
 	int j ;
-	Task *t_exec = task_main->next_task_array(TASK_EXEC, 0);
+	Task *t_exec = 0;
 	for(j = 0; j < task_size; j++) {
-	    task_main->next_task_array(TASK_EXEC,t_exec);
+	    t_exec = task_main->next_task_array(TASK_EXEC,t_exec);
 	    task_main->set_cpu(SPE_ANY);
 	    t_print->wait_for(task_main);