Mercurial > hg > Members > kono > Cerium
view include/TaskManager/MailManager.h @ 70:178459e03f5c
*** empty log message ***
author | gongo |
---|---|
date | Mon, 18 Feb 2008 01:13:00 +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