![](/media/cache/img/default_profile.jpg.50x50_q85.jpg)
external fota service implementation
ext_fota/msg_queue.h
- Committer:
- dudnwjs
- Date:
- 2015-06-19
- Revision:
- 0:bab3be8d31cf
File content as of revision 0:bab3be8d31cf:
#ifndef __MSG_QUEUE_H__ #define __MSG_QUEUE_H__ struct Element { void *Data; struct Element *Next; }; class Msg_Queue { public: Msg_Queue(int MaxSize = 512); ~Msg_Queue(void); void EnQueue(void *vData); void *DeQueue(void); int GetElementCount(void); bool IsEmpty(void); private: Element *Front; Element *Rear; const int MaxNum; int ElemCnt; }; #endif //__MSG_QUEUE_H__