Mercurial > hg > Game > Cerium
view TaskManager/kernel/ppe/TaskLog.h @ 1468:840dee241530 draft
merge
author | Shinji KONO <kono@ie.u-ryukyu.ac.jp> |
---|---|
date | Sun, 15 Jul 2012 17:42:10 +0900 |
parents | fc5b23108608 9b0908cb7553 |
children | 4443d59a8210 |
line wrap: on
line source
#ifndef INCLUDED_TASKLOG #define INCLUDED_TASKLOG #include "QueueInfo.h" struct waitTask { int task_id; int cmd; waitTask *next; waitTask *prev; waitTask *waiter; }; static int task_id; class TaskLog { public: /* variables */ int mtask_id; int cmd; QueueInfo<waitTask> wait_for_list; unsigned long long create_time; unsigned long long execute_time; unsigned long long finish_time; TaskLog *next; TaskLog *prev; TaskLog *waiter; /* constructor */ TaskLog() { mtask_id = task_id; task_id++; create_time = 0; execute_time = 0; finish_time = 0; } void set_cmd(int _cmd) { cmd = _cmd; } private: // Unique id }; #endif