Mercurial > hg > Game > Cerium
annotate example/many_task/sort.h @ 2048:6796d85f3d6b draft
remove error
author | Masataka Kohagura <kohagura@cr.ie.u-ryukyu.ac.jp> |
---|---|
date | Thu, 28 Jan 2016 00:05:49 +0900 |
parents | 40a554d45fc6 |
children |
rev | line source |
---|---|
400 | 1 #include "TaskManager.h" |
2 | |
227 | 3 typedef struct Data { |
4 int index; | |
5 int ptr; | |
6 int pad[2]; | |
7 } Data, *DataPtr; | |
8 | |
945
9ed1c4a877ca
sort example fix ( simple task accepts one param and more compatible with old task)
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
651
diff
changeset
|
9 typedef struct sort { |
9ed1c4a877ca
sort example fix ( simple task accepts one param and more compatible with old task)
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
651
diff
changeset
|
10 int data_length; |
9ed1c4a877ca
sort example fix ( simple task accepts one param and more compatible with old task)
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
651
diff
changeset
|
11 int split_num; |
1079 | 12 long cpuNum; |
1552
40a554d45fc6
select task array or task list exec option
Yuhi TOMARI <yuhi@cr.ie.u-ryukyu.ac.jp>
parents:
1544
diff
changeset
|
13 HTaskPtr *fsort; |
40a554d45fc6
select task array or task list exec option
Yuhi TOMARI <yuhi@cr.ie.u-ryukyu.ac.jp>
parents:
1544
diff
changeset
|
14 HTaskPtr *bsort; |
40a554d45fc6
select task array or task list exec option
Yuhi TOMARI <yuhi@cr.ie.u-ryukyu.ac.jp>
parents:
1544
diff
changeset
|
15 Task **fsort_task; |
40a554d45fc6
select task array or task list exec option
Yuhi TOMARI <yuhi@cr.ie.u-ryukyu.ac.jp>
parents:
1544
diff
changeset
|
16 Task **bsort_task; |
945
9ed1c4a877ca
sort example fix ( simple task accepts one param and more compatible with old task)
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
651
diff
changeset
|
17 DataPtr data; |
9ed1c4a877ca
sort example fix ( simple task accepts one param and more compatible with old task)
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
651
diff
changeset
|
18 } Sort, *SortPtr; |
9ed1c4a877ca
sort example fix ( simple task accepts one param and more compatible with old task)
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
651
diff
changeset
|
19 |
400 | 20 |
21 | |
227 | 22 #define MAX_BLOCK_SIZE (int)(1024*16/(sizeof(Data))) |