Mercurial > hg > Game > Cerium
view TaskManager/kernel/ppe/TaskLog.h @ 1546:61164c687b29 draft
fix GpuScheduler flip
author | Yuhi TOMARI <yuhi@cr.ie.u-ryukyu.ac.jp> |
---|---|
date | Tue, 05 Feb 2013 13:15:46 +0900 |
parents | 4443d59a8210 |
children |
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