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 com by
Revision 8:951c71c71b2d, committed 2014-04-23
- Comitter:
- oprospero
- Date:
- Wed Apr 23 06:21:01 2014 +0000
- Parent:
- 7:662171c0e984
- Child:
- 9:1190db2717a8
- Commit message:
- overflowing queue will force a pop instead of clear
Changed in this revision
queue/queue.cpp | Show annotated file Show diff for this revision Revisions of this file |
--- a/queue/queue.cpp Tue Apr 22 07:09:06 2014 +0000 +++ b/queue/queue.cpp Wed Apr 23 06:21:01 2014 +0000 @@ -83,7 +83,7 @@ return; // If so, return. if( queueLength() > MAXQUEUELENGTH ) - clear(); + delete pop(); queueNode * newNode = new queueNode( item ); // Create the new node.