view TaskManager/kernel/ppe/TaskList.h @ 514:2659376067e8

old ball_bound fix...
author Shinji KONO <kono@ie.u-ryukyu.ac.jp>
date Tue, 20 Oct 2009 21:18:28 +0900
parents 09f33c51a204
children 8843edf37c0e
line wrap: on
line source

#ifndef INCLUDED_TASKLIST
#define INCLUDED_TASKLIST

#include "base.h"
#include "Task.h"


// sizeof(Task)*TASK_MAX_SIZE = 512 byte
#define TASK_MAX_SIZE 16

class TaskList { // 528byte
public:
    BASE_NEW_DELETE(TaskList);

    int length; // 4 byte
    TaskList *next; // 4 byte
    Task tasks[TASK_MAX_SIZE]; // 512
    TaskList *output; // 4 byte
    int a[1]; // padding

    static TaskList* append(TaskList*, TaskList*);
};

typedef TaskList* TaskListPtr;

#endif