changeset 1793:044b5bd12ef0 draft

minor fix
author Masataka Kohagura <e085726@ie.u-ryukyu.ac.jp>
date Wed, 04 Dec 2013 17:12:58 +0900
parents f93f05ecd5c8
children 3d53b0ca02a2
files example/string_args/main.cc example/string_args/ppe/Exec.cc
diffstat 2 files changed, 3 insertions(+), 9 deletions(-) [+]
line wrap: on
line diff
--- a/example/string_args/main.cc	Wed Dec 04 16:56:46 2013 +0900
+++ b/example/string_args/main.cc	Wed Dec 04 17:12:58 2013 +0900
@@ -43,14 +43,12 @@
 run_start(TaskManager *manager,char *search_word,int search_word_len)
 {
     HTask *exec;
-    int intTable[5] = { 1, 10, 30, 50, 80};
 
     for(int i = 0; i < task_num; i++){
-        //ファイルディスクリプタをそのままタスクに渡してあげる
+
         exec = manager->create_task(TASK_EXEC);
         exec->set_cpu(spe_cpu);
         exec->set_inData(0,search_word,search_word_len);
-        exec->set_inData(1,intTable,5);
 
         exec->set_param(0,(long)one_task_size);
         exec->set_param(1,(long)i);
--- a/example/string_args/ppe/Exec.cc	Wed Dec 04 16:56:46 2013 +0900
+++ b/example/string_args/ppe/Exec.cc	Wed Dec 04 17:12:58 2013 +0900
@@ -19,7 +19,6 @@
 run(SchedTask *s, void *rbuf, void *wbuf)
 {
     const char *search_word = (char *)s->get_input(rbuf,0);
-    const int *table = (int *)s->get_input(rbuf,1);
 
     long task_size = (long)s->get_param(0);
     long task_number = (long)s->get_param(1);
@@ -27,12 +26,9 @@
     //s->xはiteraterで繰り返した数
 
     s->printf("[task number: %d]\n",task_number);
-    s->printf("num        : %d\n",task_size);
-    s->printf("arg1 word  : %s\n",search_word);
+    s->printf("[args       : %s]\n",search_word);
+    s->printf("[task size  : %d]\n",task_number);
 
-    for(int i = 0; i < 4; i++){
-        if(table[i] == 100) break;
-    }
 
     return 0;
 }