changeset 1801:e91bf033443a draft

fix task_size in run16
author Masataka Kohagura <e085726@ie.u-ryukyu.ac.jp>
date Sun, 08 Dec 2013 13:20:32 +0900
parents 9a1ba9cb9557
children e08f6133f5d7
files example/regex_mas/main.cc
diffstat 1 files changed, 5 insertions(+), 5 deletions(-) [+]
line wrap: on
line diff
--- a/example/regex_mas/main.cc	Fri Dec 06 05:31:30 2013 +0900
+++ b/example/regex_mas/main.cc	Sun Dec 08 13:20:32 2013 +0900
@@ -146,7 +146,7 @@
                 h_exec->spawn();
             }
             w->size -= size;
-            w->task_num--; 
+            w->task_num--;
         }
         if (use_task_array) {
             task_array->spawn_task_array(t_exec->next());
@@ -183,7 +183,7 @@
                                                (memaddr)&w->self,sizeof(memaddr),0,0);
         w->t_print->wait_for(t_next);
 
-        run_tasks(manager,w, w->task_blocks, t_next, w->division_size);
+        run_tasks(manager,w, w->task_blocks, t_next, w->division_size + w->extra_len);
 
         t_next->spawn();
         // printf("run16 next %d\n",w->task_num);
@@ -271,15 +271,15 @@
                                    (memaddr)&w->self,sizeof(memaddr),0,0);
     w->t_print = t_print;
 
-    //    for(int i = 0;i<2;i++) {
+    //  for(int i = 0;i<2;i++) {
         /* Task を task_blocks ずつ起動する Task */
         /* serialize されていると仮定する... */
         HTaskPtr t_exec = manager->create_task(RUN_TASK_BLOCKS,
                                                (memaddr)&w->self,sizeof(memaddr),0,0);
         t_print->wait_for(t_exec);
         t_exec->iterate(2);
-        //        t_exec->spawn();
-        //    }
+    //      t_exec->spawn();
+    //  }
 
     t_print->spawn();
 }