diff example/word_count_test/main.cc @ 674:07351a5a51c9 draft

fix many task example (sort). Dummy task is now system supported.
author Shinji KONO <kono@ie.u-ryukyu.ac.jp>
date Sun, 06 Dec 2009 00:54:10 +0900
parents 5e5e8eb8da5a
children 97adb3fe85c6
line wrap: on
line diff
--- a/example/word_count_test/main.cc	Sat Dec 05 20:54:12 2009 +0900
+++ b/example/word_count_test/main.cc	Sun Dec 06 00:54:10 2009 +0900
@@ -193,10 +193,6 @@
 
     /*各SPEの結果を合計して出力するタスク*/
 
-    if (profile) {
-	manager->start_profile();
-    }
-
 #ifdef SIMPLE_TASK
     t_print = manager->create_task(TASK_PRINT,
 	(memaddr)&w->self,sizeof(memaddr),0,0);
@@ -254,12 +250,6 @@
     return filename;
 }
 
-static void
-myTMend(TaskManager *manager) 
-{
-    if (profile) 
-	manager->show_profile();
-}
 
 int
 TMmain(TaskManager *manager, int argc, char *argv[])
@@ -271,7 +261,6 @@
     if (filename < 0) {
 	return -1;
     }
-    manager->set_TMend(myTMend);
 
     task_init();
     run_start(manager, filename);