mirror of
https://github.com/cjcliffe/CubicSDR.git
synced 2025-09-02 13:17:48 -04:00
comment some debug logging
This commit is contained in:
parent
df33751f9e
commit
1dba16b15f
@ -147,16 +147,16 @@ public:
|
|||||||
|
|
||||||
void purge() {
|
void purge() {
|
||||||
std::lock_guard < std::mutex > lock(m_mutex);
|
std::lock_guard < std::mutex > lock(m_mutex);
|
||||||
if (bufferId == "DemodulatorThreadBuffers") {
|
// if (bufferId == "DemodulatorThreadBuffers") {
|
||||||
std::cout << "'" << bufferId << "' purging.. total indexes: " << indexCounter.load() << std::endl;
|
// std::cout << "'" << bufferId << "' purging.. total indexes: " << indexCounter.load() << std::endl;
|
||||||
}
|
// }
|
||||||
while (!outputBuffers.empty()) {
|
while (!outputBuffers.empty()) {
|
||||||
BufferType *ref = outputBuffers.front();
|
BufferType *ref = outputBuffers.front();
|
||||||
outputBuffers.pop_front();
|
outputBuffers.pop_front();
|
||||||
if (ref->getRefCount() <= 0) {
|
if (ref->getRefCount() <= 0) {
|
||||||
delete ref;
|
delete ref;
|
||||||
} else {
|
} else {
|
||||||
// Something isn't done with it yet; throw it on the pile..
|
// Something isn't done with it yet; throw it on the pile.. keep this as a bug indicator for now..
|
||||||
std::cout << "'" << bufferId << "' pushed garbage.." << std::endl;
|
std::cout << "'" << bufferId << "' pushed garbage.." << std::endl;
|
||||||
ReBufferGC::addGarbage(ref);
|
ReBufferGC::addGarbage(ref);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user