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.
Fork of mbed_fota by
Diff: ext_fota/MsgQueue.h
- Revision:
- 0:a1f6b1ba8a1e
- Child:
- 1:5cf3a6c969be
diff -r 000000000000 -r a1f6b1ba8a1e ext_fota/MsgQueue.h
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/ext_fota/MsgQueue.h Mon Jun 22 07:19:59 2015 +0000
@@ -0,0 +1,34 @@
+#ifndef MSGQUEUE_H
+#define MSGQUEUE_H
+
+namespace sevencore_fota{
+
+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;
+
+};
+
+}//namespace
+
+#endif //MSG_QUEUE_H
+
