Mercurial > hg > Members > kono > Cerium
view TaskManager/kernel/ppe/HTaskInfo.h @ 636:d433fc37587d
Cell Simple Task compiled. but not worked.
author | Shinji KONO <kono@ie.u-ryukyu.ac.jp> |
---|---|
date | Wed, 18 Nov 2009 19:09:40 +0900 |
parents | 0558abba673c |
children | bed529c55eda |
line wrap: on
line source
#ifndef INCLUDED_HTASK_INFO #define INCLUDED_HTASK_INFO #include "Task.h" #include "HTask.h" class HTaskInfo : public HTask { public: /* constructor */ HTaskInfo(); BASE_NEW_DELETE(HTaskInfo); /* functions */ HTaskPtr create(int cmd); HTaskPtr create(int cmd, memaddr rbuf, int rs, memaddr wbuf, int ws); void free_(HTaskPtr queue); void addFirst(HTask* e); void addLast(HTask* e); HTask* getFirst(); HTask* getLast(); int remove(HTask* e); HTask* poll(); void moveToFirst(HTask* e); // or use(); HTask* get(int index); HTask* find(HTask *task); int empty(); void freePool() ; // Iterator HTask* getNext(HTask* q) ; int length(); private: /* variables */ static HTaskInfo taskQueuePool; HTask* first; HTask* last; /* functions */ int extend_pool(int num); void destroy(); }; #endif