Mercurial > hg > Game > Cerium
view example/many_task/sort.h @ 1592:afcb4a3f3526 draft
merge
author | Masa <e085726@ie.u-ryukyu.ac.jp> |
---|---|
date | Mon, 01 Apr 2013 18:00:35 +0900 |
parents | 40a554d45fc6 |
children |
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; Task **fsort_task; Task **bsort_task; DataPtr data; } Sort, *SortPtr; #define MAX_BLOCK_SIZE (int)(1024*16/(sizeof(Data)))