Mercurial > hg > Game > Cerium
diff example/word_count/WordCount.h @ 1910:b7b528e9ec5e draft
Implement divide read in word_count ( but cannot running )
author | Masataka Kohagura <e085726@ie.u-ryukyu.ac.jp> |
---|---|
date | Sun, 19 Jan 2014 22:54:01 +0900 |
parents | d9122ca02431 |
children | 4a716f35980a |
line wrap: on
line diff
--- a/example/word_count/WordCount.h Sun Jan 19 21:39:52 2014 +0900 +++ b/example/word_count/WordCount.h Sun Jan 19 22:54:01 2014 +0900 @@ -1,6 +1,17 @@ typedef struct wordCount { struct wordCount *self; + int fd; + int read_division_size; + int read_task_number; + int read_task_num; + int read_left_task_num; + int read_filesize; + int read_left_size; + int read_task_blocks; + char *read_text; + CPU_TYPE read_cpu; + int size; // remaining file size int division_size; // for each word count task int division_out_size; @@ -17,5 +28,5 @@ char * file_mmap; int file_size; HTaskPtr t_print; -} WordCount; +} WordCount, *WordCountPtr;