Mercurial > hg > Game > Cerium
view TaskManager/kernel/ppe/MailManager.h @ 640:ecf056ddd21a draft
SimpeTask on Cell worked.
author | Shinji KONO <kono@ie.u-ryukyu.ac.jp> |
---|---|
date | Fri, 20 Nov 2009 23:12:34 +0900 |
parents | 0bfab105a770 |
children | 2a611e8d8788 |
line wrap: on
line source
#ifndef INCLUDED_MAIL_MANAGER #define INCLUDED_MAIL_MANAGER #include "types.h" typedef struct mail_queue { memaddr data; struct mail_queue *next; } MailQueue, *MailQueuePtr; class MailManager { public: /* constructor */ MailManager(); ~MailManager(); /* functions */ int init(int num); MailQueuePtr create(memaddr data); void free(MailQueuePtr q); static MailQueuePtr append_mailQueue(MailQueuePtr list, MailQueuePtr q); static int length(MailQueuePtr list); private: /* variables */ MailQueuePtr mailQueuePool; MailQueuePtr freeMailQueue; /* functions */ int extend_pool(int num); void destroy(); }; #endif