mirror of
https://github.com/cjcliffe/CubicSDR.git
synced 2026-06-05 23:45:04 -04:00
Attempt to clean up any buffers that weren't used on terminate, still one hanging around..
This commit is contained in:
@@ -231,8 +231,9 @@ public:
|
||||
/**
|
||||
* Remove any items in the queue.
|
||||
*/
|
||||
void flush() const {
|
||||
void flush() {
|
||||
std::lock_guard < std::mutex > lock(m_mutex);
|
||||
m_queue = std::queue<T, Container>();
|
||||
std::queue<T, Container> emptyQueue;
|
||||
std::swap(m_queue, emptyQueue);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user