Mercurial > hg > Game > Cerium
changeset 1828:f0dab5fffe7a draft
cannot running probrem resolve in fileread
author | Masataka Kohagura <e085726@ie.u-ryukyu.ac.jp> |
---|---|
date | Tue, 17 Dec 2013 14:07:40 +0900 |
parents | d1212026e2a0 |
children | 45d4ed567cd7 |
files | example/fileread/main.cc |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/example/fileread/main.cc Tue Dec 17 13:57:34 2013 +0900 +++ b/example/fileread/main.cc Tue Dec 17 14:07:40 2013 +0900 @@ -43,7 +43,7 @@ HTaskPtr read = manager->create_task(Read_task); read->set_cpu(fr->cpu); - if (fr->task_number == fr->task_blocks / 2) wait = read; + if (i == fr->task_blocks / 2) wait = read; //ファイルディスクリプタをそのままタスクに渡してあげる read->set_inData(0,fr->fd,sizeof(int*));