view example/many_task/sort.h @ 1079:7823233584da draft

single cpu run on Mac OS X
author one@zeus.cr.ie.u-ryukyu.ac.jp
date Sat, 18 Dec 2010 11:04:58 +0900
parents 9ed1c4a877ca
children 5c4e3f0d372a
line wrap: on
line source

#include "TaskManager.h"

typedef struct Data {
    int index;
    int ptr;
    int pad[2];
} Data, *DataPtr;

typedef struct sort {
    int data_length;
    int split_num;
    long cpuNum;
    HTaskPtr *fsort;
    HTaskPtr *bsort;
    DataPtr data;
} Sort, *SortPtr;



#define MAX_BLOCK_SIZE (int)(1024*16/(sizeof(Data)))