Mercurial > hg > Members > kono > Cerium
view include/TaskManager/MailManager.h @ 201:b257e27d995c
add SceneGraphIterator
author | gongo@gendarme.cr.ie.u-ryukyu.ac.jp |
---|---|
date | Mon, 26 Jan 2009 16:46:59 +0900 |
parents | 7927e00fb8e2 |
children |
line wrap: on
line source
#ifndef INCLUDED_MAIL_MANAGER #define INCLUDED_MAIL_MANAGER typedef struct mail_queue { unsigned int data; struct mail_queue *next; } MailQueue, *MailQueuePtr; class MailManager { public: /* constructor */ MailManager(void); ~MailManager(void); /* functions */ int init(int num); MailQueuePtr create(unsigned int data); void free(MailQueuePtr q); static MailQueuePtr append_mailQueue(MailQueuePtr list, MailQueuePtr q); private: /* variables */ MailQueuePtr mailQueuePool; MailQueuePtr freeMailQueue; /* functions */ int extend_pool(int num); void destroy(void); }; #endif