Mercurial > hg > Game > Cerium
comparison TaskManager/kernel/ppe/TaskLog.h @ 1428:af2adce9752e draft
add to export TaskLog
author | Daichi TOMA <toma@cr.ie.u-ryukyu.ac.jp> |
---|---|
date | Wed, 28 Mar 2012 01:36:31 +0900 |
parents | 0ce6c6880b4b |
children | 9b0908cb7553 |
comparison
equal
deleted
inserted
replaced
1426:1bf286e37ba3 | 1428:af2adce9752e |
---|---|
1 #ifndef INCLUDED_TASKLOG | 1 #ifndef INCLUDED_TASKLOG |
2 #define INCLUDED_TASKLOG | 2 #define INCLUDED_TASKLOG |
3 | 3 |
4 #include "HTask.h" | |
5 #include "QueueInfo.h" | 4 #include "QueueInfo.h" |
6 | 5 |
7 struct waitTask { | 6 struct waitTask { |
8 int task_id; | 7 int task_id; |
9 int cmd; | 8 int cmd; |
32 TaskLog() { | 31 TaskLog() { |
33 mtask_id = task_id; | 32 mtask_id = task_id; |
34 task_id++; | 33 task_id++; |
35 } | 34 } |
36 | 35 |
36 void set_cmd(int _cmd) { | |
37 cmd = _cmd; | |
38 } | |
39 | |
40 | |
37 private: | 41 private: |
38 // Unique id | 42 // Unique id |
39 static int task_id; | 43 static int task_id; |
40 | 44 |
41 }; | 45 }; |