Mercurial > hg > Game > Cerium
view TaskManager/kernel/ppe/Task.h @ 498:bce667ff20b9 draft
double linked HTaskInfo/HTask
author | Shinji KONO <kono@ie.u-ryukyu.ac.jp> |
---|---|
date | Sun, 11 Oct 2009 11:46:41 +0900 |
parents | 3429986b8a28 |
children | 7ddbe22d4cdb |
line wrap: on
line source
#ifndef INCLUDED_TASK #define INCLUDED_TASK #include "base.h" #include "types.h" #include "ListData.h" #define MAX_PARAMS 8 class TaskQueue; class Task { public: // variables BASE_NEW_DELETE(Task); int command; // 4 byte ListData inData; // 4 byte 64bit であるべき ListData outData; // 4 byte 64bit であるべき int self; // 4 byte int param_size; // 4 byte int param[MAX_PARAMS]; // 4*MAX_PARAMS byte public: // functions int add_inData_t(unsigned int addr, int size); // unsigned int ではなく 64bit int add_outData_t(unsigned int addr, int size); // unsigned int ではなく 64bit int add_data(ListData &list, unsigned int addr, int size); int add_param(int param); #define add_inData(addr, size) \ add_inData_t((unsigned int)(addr), (size)); #define add_outData(addr, size) \ add_outData_t((unsigned int)(addr), (size)); }; typedef Task* TaskPtr; #endif