VisualProcessor now a template base, more tweaking needed

This commit is contained in:
Charles J. Cliffe
2015-07-31 21:03:17 -04:00
parent 3fbb1def49
commit 61add8ae09
5 changed files with 99 additions and 37 deletions
+9
View File
@@ -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.
*/