Mercurial > hg > Members > kono > Cerium
view TaskManager/kernel/ppe/MailManager.h @ 643:bffdede05f1e
minor fix.
author | Shinji KONO <kono@ie.u-ryukyu.ac.jp> |
---|---|
date | Sat, 21 Nov 2009 10:57:37 +0900 |
parents | a909c50081c2 |
children | 7c9ded1ea750 |
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); static int find(MailQueuePtr q,MailQueuePtr list); private: /* variables */ MailQueuePtr mailQueuePool; MailQueuePtr freeMailQueue; /* functions */ int extend_pool(int num); void destroy(); }; #endif