annotate example/word_count_run16array/WordCount.h @ 806:32584e896fe7

add word_count_run16array
author yutaka@localhost.localdomain
date Fri, 21 May 2010 19:00:48 +0900
parents
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
806
32584e896fe7 add word_count_run16array
yutaka@localhost.localdomain
parents:
diff changeset
1
32584e896fe7 add word_count_run16array
yutaka@localhost.localdomain
parents:
diff changeset
2 typedef struct wordCount {
32584e896fe7 add word_count_run16array
yutaka@localhost.localdomain
parents:
diff changeset
3 struct wordCount *self;
32584e896fe7 add word_count_run16array
yutaka@localhost.localdomain
parents:
diff changeset
4 int size; // remaining file size
32584e896fe7 add word_count_run16array
yutaka@localhost.localdomain
parents:
diff changeset
5 int division_size; // for each word count task
32584e896fe7 add word_count_run16array
yutaka@localhost.localdomain
parents:
diff changeset
6 int division_out_size;
32584e896fe7 add word_count_run16array
yutaka@localhost.localdomain
parents:
diff changeset
7 int out_size;
32584e896fe7 add word_count_run16array
yutaka@localhost.localdomain
parents:
diff changeset
8 int task_num; // remaining task count
32584e896fe7 add word_count_run16array
yutaka@localhost.localdomain
parents:
diff changeset
9 int task_blocks; // spawn task one at a time
32584e896fe7 add word_count_run16array
yutaka@localhost.localdomain
parents:
diff changeset
10 int status_num;
32584e896fe7 add word_count_run16array
yutaka@localhost.localdomain
parents:
diff changeset
11 int task_spwaned;
32584e896fe7 add word_count_run16array
yutaka@localhost.localdomain
parents:
diff changeset
12 unsigned long long *o_data;
32584e896fe7 add word_count_run16array
yutaka@localhost.localdomain
parents:
diff changeset
13 unsigned long long *head_tail_flag;
32584e896fe7 add word_count_run16array
yutaka@localhost.localdomain
parents:
diff changeset
14 int out_task_num;
32584e896fe7 add word_count_run16array
yutaka@localhost.localdomain
parents:
diff changeset
15 int pad;
32584e896fe7 add word_count_run16array
yutaka@localhost.localdomain
parents:
diff changeset
16 char * file_mmap;
32584e896fe7 add word_count_run16array
yutaka@localhost.localdomain
parents:
diff changeset
17 HTaskPtr t_print;
32584e896fe7 add word_count_run16array
yutaka@localhost.localdomain
parents:
diff changeset
18 } WordCount;
32584e896fe7 add word_count_run16array
yutaka@localhost.localdomain
parents:
diff changeset
19