code style
This commit is contained in:
@@ -75,7 +75,7 @@ public:
|
||||
pthread_mutex_lock(&m_mutex);
|
||||
|
||||
T item;
|
||||
if (wait) {
|
||||
if (wait == true) {
|
||||
while (m_queue.size() == 0)
|
||||
pthread_cond_wait(&m_cond, &m_mutex);
|
||||
item = m_queue.front();
|
||||
@@ -117,7 +117,7 @@ public:
|
||||
pthread_mutex_lock(&m_mutex);
|
||||
|
||||
T item;
|
||||
if (wait) {
|
||||
if (wait == true) {
|
||||
while (m_queue.size() == 0)
|
||||
pthread_cond_wait(&m_cond, &m_mutex);
|
||||
item = m_queue.front();
|
||||
|
||||
Reference in New Issue
Block a user