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.
Revision 4:767ceb20b68f, committed 2021-11-22
- Comitter:
- masaaki_makabe
- Date:
- Mon Nov 22 08:30:42 2021 +0000
- Parent:
- 3:3b438c482048
- Commit message:
- modified.
Changed in this revision
| queueEx.h | Show diff for this revision Revisions of this file |
diff -r 3b438c482048 -r 767ceb20b68f queueEx.h
--- a/queueEx.h Mon Nov 22 08:15:36 2021 +0000
+++ /dev/null Thu Jan 01 00:00:00 1970 +0000
@@ -1,49 +0,0 @@
-/**
- ******************************************************************************
- * @file : queueEx.h
- * @brief : queue expansion
- ******************************************************************************
- * @attention
- *
- ******************************************************************************
- */
-#ifndef QUEUEEX_h
-#define QUEUEEX_h
-
-#include "queue.h"
-
-class QueueEx : public Queue{
-private:
-public:
- QueueEx(int iSize, int iCount) : Queue(iSize, iCount){
- }
- bool PeekAll(void* pvItem){
- unsigned char *pv = (unsigned char*)pvItem;
- unsigned char *p = m_pnRdIndex;
- int n = m_iLclCount;
- if (n > 0){
- do {
- memcpy( pv, p, m_iSize );
- pv += m_iSize;
- p += m_iSize;
- if ( p >= m_pnTail ) p = m_pnHead;
- } while(--n);
- return true;
- }
- return false;
- }
- bool Peek(int index, void* pvItem){
- unsigned char *p = m_pnRdIndex;
- if (index < m_iLclCount){
- for(int i = 0; i < index; i++){
- p += m_iSize;
- if ( p >= m_pnTail ) p = m_pnHead;
- }
- memcpy( pvItem, p, m_iSize );
- return true;
- }
- return false;
- }
-};
-
-#endif/*QUEUEEX_h*/