BLE fota Lamp Demo
Dependencies: mbed-rtos mbed mbed_fota_fan_control
Fork of mbed_fota_fan_control by
Diff: ext_fota/MsgQueue.cpp
- Revision:
- 1:5cf3a6c969be
- Parent:
- 0:a1f6b1ba8a1e
- Child:
- 8:9eec2c246a85
--- a/ext_fota/MsgQueue.cpp Mon Jun 22 07:19:59 2015 +0000 +++ b/ext_fota/MsgQueue.cpp Mon Jun 22 07:36:06 2015 +0000 @@ -1,20 +1,20 @@ -#include "msg_queue.h" +#include "MsgQueue.h" #include "mbed.h" namespace sevencore_fota{ -Msg_Queue::Msg_Queue(int MaxSize):MaxNum(MaxSize) +MsgQueue::MsgQueue(int MaxSize):MaxNum(MaxSize) { Front = NULL; Rear = NULL; ElemCnt = 0; } -Msg_Queue::~Msg_Queue(void) +MsgQueue::~MsgQueue(void) { } -void Msg_Queue::EnQueue(void *vData) +void MsgQueue::EnQueue(void *vData) { Element *tmp = new Element; tmp->Data = vData; @@ -31,7 +31,7 @@ } } -void *Msg_Queue::DeQueue(void) +void *MsgQueue::DeQueue(void) { void *tmp; Element *tmpElem; @@ -48,12 +48,12 @@ return tmp; } -int Msg_Queue::GetElementCount(void) +int MsgQueue::GetElementCount(void) { return ElemCnt; } -bool Msg_Queue::IsEmpty(void) +bool MsgQueue::IsEmpty(void) { if( Front == NULL) return false;