Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: mbed-rtos mbed mbed_fota_fan_control
Fork of mbed_fota_lamp_control by
ext_fota/MsgQueue.h
- Committer:
- dudnwjs
- Date:
- 2015-06-22
- Revision:
- 1:5cf3a6c969be
- Parent:
- 0:a1f6b1ba8a1e
- Child:
- 8:9eec2c246a85
File content as of revision 1:5cf3a6c969be:
#ifndef MSGQUEUE_H
#define MSGQUEUE_H
namespace sevencore_fota{
struct Element
{
void *Data;
struct Element *Next;
};
class MsgQueue
{
public:
MsgQueue(int MaxSize = 512);
~MsgQueue(void);
void EnQueue(void *vData);
void *DeQueue(void);
int GetElementCount(void);
bool IsEmpty(void);
private:
Element *Front;
Element *Rear;
const int MaxNum;
int ElemCnt;
};
}//namespace
#endif //MSG_QUEUE_H
