mirror of
https://github.com/cjcliffe/CubicSDR.git
synced 2026-06-07 00:14:40 -04:00
VisualProcessor now a template base, more tweaking needed
This commit is contained in:
@@ -211,6 +211,15 @@ public:
|
||||
return m_queue.empty();
|
||||
}
|
||||
|
||||
/**
|
||||
* Check if the queue is empty.
|
||||
* \return true if queue is empty.
|
||||
*/
|
||||
bool full() const {
|
||||
std::lock_guard < std::mutex > lock(m_mutex);
|
||||
return m_queue.size() >= m_max_num_items;
|
||||
}
|
||||
|
||||
/**
|
||||
* Remove any items in the queue.
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user