git.cweiske.de
/
enigma2.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
SystemPlugins/NetworkWizard: Don't depend on device names where possible. Some code...
[enigma2.git]
/
lib
/
base
/
ringbuffer.h
diff --git
a/lib/base/ringbuffer.h
b/lib/base/ringbuffer.h
index f2cd9058805ed340985fca482686441db5af55dc..3118161e8c3b251c9f5d31b244ca40777d4b5571 100644
(file)
--- a/
lib/base/ringbuffer.h
+++ b/
lib/base/ringbuffer.h
@@
-31,6
+31,7
@@
public:
template <class T>
queueRingBuffer<T>::queueRingBuffer( unsigned int max )
{
template <class T>
queueRingBuffer<T>::queueRingBuffer( unsigned int max )
{
+ count = 0;
// constructor for queues based on ring buffers
// create the first link
T initialvalue;
// constructor for queues based on ring buffers
// create the first link
T initialvalue;
@@
-91,7
+92,7
@@
void queueRingBuffer<T>::enqueue( const T &val )
// first check for potential overflow
if( lastFilled->nextLink == lastFree )
{
// first check for potential overflow
if( lastFilled->nextLink == lastFree )
{
-
eDebug("increase size %d", count);
+
//
eDebug("increase size %d", count);
link<T> * newLink = new link<T>( val );
newLink->prevLink = lastFilled;
newLink->nextLink = lastFilled->nextLink;
link<T> * newLink = new link<T>( val );
newLink->prevLink = lastFilled;
newLink->nextLink = lastFilled->nextLink;