annotate example/word_count/WordCount.h @ 1130:5addc6c1d5c4 draft

fix.
author root@dolphins.cr.ie.u-ryukyu.ac.jp
date Sun, 13 Feb 2011 22:34:44 +0900
parents 5f0135ca75ee
children d9122ca02431
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
947
601578a2fb7f add WordCount.h
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
1
601578a2fb7f add WordCount.h
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
2 typedef struct wordCount {
601578a2fb7f add WordCount.h
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
3 struct wordCount *self;
601578a2fb7f add WordCount.h
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
4 int size; // remaining file size
601578a2fb7f add WordCount.h
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
5 int division_size; // for each word count task
601578a2fb7f add WordCount.h
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
6 int division_out_size;
601578a2fb7f add WordCount.h
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
7 int out_size;
601578a2fb7f add WordCount.h
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
8 int task_num; // remaining task count
601578a2fb7f add WordCount.h
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
9 int task_blocks; // spawn task one at a time
601578a2fb7f add WordCount.h
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
10 int status_num;
601578a2fb7f add WordCount.h
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
11 int task_spwaned;
601578a2fb7f add WordCount.h
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
12 unsigned long long *o_data;
601578a2fb7f add WordCount.h
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
13 unsigned long long *head_tail_flag;
601578a2fb7f add WordCount.h
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
14 int out_task_num;
601578a2fb7f add WordCount.h
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
15 int pad;
601578a2fb7f add WordCount.h
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
16 char * file_mmap;
949
5f0135ca75ee word count size fix
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 947
diff changeset
17 int file_size;
947
601578a2fb7f add WordCount.h
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
18 HTaskPtr t_print;
601578a2fb7f add WordCount.h
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
19 } WordCount;
601578a2fb7f add WordCount.h
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
20