comparison TaskManager/kernel/schedule/ListData.h @ 696:b5c3ef336878

on going...
author Shinji KONO <kono@ie.u-ryukyu.ac.jp>
date Sun, 13 Dec 2009 10:49:07 +0900
parents 8843edf37c0e
children 7e937a1cd121
comparison
equal deleted inserted replaced
695:cbcf0182635e 696:b5c3ef336878
25 public: 25 public:
26 BASE_NEW_DELETE(ListData); 26 BASE_NEW_DELETE(ListData);
27 27
28 int length; // The number of data (4) 28 int length; // The number of data (4)
29 int size; // Total size of data (4) 29 int size; // Total size of data (4)
30 #ifdef SIMPLE_TASK
31 int *bound;
32 ListElement *element;
33 #else
30 int a[2]; // for alignment 34 int a[2]; // for alignment
31 int bound[MAX_LIST_DMA_SIZE]; // (4 * MAX_LIST_DMA_SIZE) 35 int bound[MAX_LIST_DMA_SIZE]; // (4 * MAX_LIST_DMA_SIZE)
32 ListElement element[MAX_LIST_DMA_SIZE]; // (8 * MAX_LIST_DMA_SIZE) 36 ListElement element[MAX_LIST_DMA_SIZE]; // (8 * MAX_LIST_DMA_SIZE)
37 #endif
33 38
34 void clear(void) { 39 void clear(void) {
35 length = 0; 40 length = 0;
36 size = 0; 41 size = 0;
37 } 42 }