view example/many_task/sort.h @ 932:53ad3a61b40b draft

sort test (add swap())
author Shinji KONO <kono@ie.u-ryukyu.ac.jp>
date Sat, 31 Jul 2010 00:57:46 +0900
parents e78f70dc7ef8
children 9ed1c4a877ca
line wrap: on
line source

#include "TaskManager.h"

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

extern void sort_init(SchedTask *,void *, void *);


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