changeset 1269:19354d84e08a draft

fix
author Daichi Toma <toma@cr.ie.u-ryukyu.ac.jp>
date Sun, 20 Nov 2011 08:06:19 +0900
parents f0808a329663
children a67d25aec253
files example/word_count/main.cc
diffstat 1 files changed, 1 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/example/word_count/main.cc	Sat Nov 19 20:49:47 2011 +0900
+++ b/example/word_count/main.cc	Sun Nov 20 08:06:19 2011 +0900
@@ -226,6 +226,7 @@
 	    h_exec->spawn();
 	    
 	    w->size -= size;
+		if (w->size == 0) break;
 	    w->task_num--;
 	    
 	  }