Mercurial > hg > Game > Cerium
view include/TaskManager/MailManager.h @ 48:70a0ac46133e
*** empty log message ***
author | gongo |
---|---|
date | Fri, 15 Feb 2008 16:09:42 +0900 |
parents | 31a7ff27ee20 |
children | 7927e00fb8e2 |
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_pool_mailQueue(int num); int extend_pool_mailQueue(int num); MailQueuePtr create_mail(unsigned int data); MailQueuePtr get_free_mailQueue(unsigned int data); void free_mailQueue(MailQueuePtr q); void destroy_mailQueue(void); private: /* variables */ MailQueuePtr mailQueuePool; MailQueuePtr freeMailQueue; }; extern MailQueuePtr append_mailQueue(MailQueuePtr list, MailQueuePtr q); #endif