X-Git-Url: https://git.cweiske.de/enigma2.git/blobdiff_plain/d63d2c3c6cbbd574dda4f8b00ebe6c661735edd5..d1455ab44c24de50db9c4ed7efb2ac2a523b9fdd:/lib/base/ringbuffer.h diff --git a/lib/base/ringbuffer.h b/lib/base/ringbuffer.h index f2cd9058..3118161e 100644 --- a/lib/base/ringbuffer.h +++ b/lib/base/ringbuffer.h @@ -31,6 +31,7 @@ public: template queueRingBuffer::queueRingBuffer( unsigned int max ) { + count = 0; // constructor for queues based on ring buffers // create the first link T initialvalue; @@ -91,7 +92,7 @@ void queueRingBuffer::enqueue( const T &val ) // first check for potential overflow if( lastFilled->nextLink == lastFree ) { - eDebug("increase size %d", count); +// eDebug("increase size %d", count); link * newLink = new link( val ); newLink->prevLink = lastFilled; newLink->nextLink = lastFilled->nextLink;