projects
/
vuplus_dvbapp
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge branch 'acid-burn/bug_608_add_nim_sockets_to_crashlogs' into experimental
[vuplus_dvbapp]
/
lib
/
base
/
ringbuffer.h
diff --git
a/lib/base/ringbuffer.h
b/lib/base/ringbuffer.h
index
f2cd905
..
3118161
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;