Mercurial > hg > Game > Cerium
view TaskManager/kernel/ppe/TaskLog.h @ 2054:2e7a6f40672f draft
add param(4) in FileMapReduce.cc
author | masa |
---|---|
date | Fri, 29 Jan 2016 15:56:28 +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