annotate example/word_count_test/WordCount.h @ 670:87040ec6b5f6 draft

add header.
author Shinji KONO <kono@ie.u-ryukyu.ac.jp>
date Thu, 03 Dec 2009 09:02:40 +0900
parents
children 54f0180cea0f
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
670
87040ec6b5f6 add header.
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
1
87040ec6b5f6 add header.
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
2 typedef struct wordCount {
87040ec6b5f6 add header.
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
3 struct wordCount *self;
87040ec6b5f6 add header.
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
4 int size; // remaining file size
87040ec6b5f6 add header.
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
5 int division_size; // for each word count task
87040ec6b5f6 add header.
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
6 int division_out_size;
87040ec6b5f6 add header.
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
7 int out_size;
87040ec6b5f6 add header.
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
8 int task_num; // remaining task count
87040ec6b5f6 add header.
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
9 int task_blocks; // spawn task one at a time
87040ec6b5f6 add header.
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
10 int status_num;
87040ec6b5f6 add header.
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
11 int task_spwaned;
87040ec6b5f6 add header.
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
12 unsigned long long *o_data;
87040ec6b5f6 add header.
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
13 unsigned long long *head_tail_flag;
87040ec6b5f6 add header.
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
14 int out_task_num;
87040ec6b5f6 add header.
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
15 int pad;
87040ec6b5f6 add header.
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
16 char * file_mmap;
87040ec6b5f6 add header.
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
17 HTaskPtr t_print;
87040ec6b5f6 add header.
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
18 } WordCount;
87040ec6b5f6 add header.
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
19