allow setting progress for current task from within resident task, implement rudiment...
[enigma2.git] / lib / base / ringbuffer.h
index f2cd9058805ed340985fca482686441db5af55dc..3118161e8c3b251c9f5d31b244ca40777d4b5571 100644 (file)
@@ -31,6 +31,7 @@ public:
 template <class T>
 queueRingBuffer<T>::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<T>::enqueue( const T &val )
        // 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;