diff --git a/cwSpScQueueTmpl.cpp b/cwSpScQueueTmpl.cpp index 9c51e2f..b30e279 100644 --- a/cwSpScQueueTmpl.cpp +++ b/cwSpScQueueTmpl.cpp @@ -77,7 +77,7 @@ namespace cw c->share->readyFl.store(true,std::memory_order_release); } - if((m = c->share->q->pop()) != nullptr ) + while((m = c->share->q->pop()) != nullptr ) { uint8_t curCheckSum = 0; for(unsigned i=0; i