view example/word_count/WordCount.h @ 1582:046695c73cb0 draft

add min_cpu(), max_cpu() (Who implements these?)
author Shinji KONO <kono@ie.u-ryukyu.ac.jp>
date Sat, 30 Mar 2013 23:34:59 +0900
parents 5f0135ca75ee
children d9122ca02431
line wrap: on
line source


typedef struct wordCount {
    struct wordCount *self;
    int size;             // remaining file size
    int division_size;    // for each word count task
    int division_out_size;    
    int out_size;    
    int task_num;         // remaining task count
    int task_blocks;      // spawn task one at a time
    int status_num; 
    int task_spwaned;
    unsigned long long *o_data;
    unsigned long long *head_tail_flag;
    int out_task_num;
    int pad; 
    char * file_mmap;
    int file_size;
    HTaskPtr t_print;
} WordCount;