minor fixes

This commit is contained in:
Charles J. Cliffe 2017-02-16 21:54:18 -05:00
parent 9e32141a5f
commit 8dfb8ea3f1

View File

@ -10,6 +10,7 @@
#include <stddef.h> #include <stddef.h>
#include <condition_variable> #include <condition_variable>
#include <typeinfo> #include <typeinfo>
#include <iostream>
#define MIN_ITEM_NB (1) #define MIN_ITEM_NB (1)
@ -242,7 +243,7 @@ public:
std::lock_guard < std::mutex > lock1(m_mutex); std::lock_guard < std::mutex > lock1(m_mutex);
std::lock_guard < std::mutex > lock2(sq.m_mutex); std::lock_guard < std::mutex > lock2(sq.m_mutex);
m_queue = sq.m_queue m_queue = sq.m_queue;
m_max_num_items = sq.m_max_num_items; m_max_num_items = sq.m_max_num_items;
if (!m_queue.empty()) { if (!m_queue.empty()) {