Browse Source

V1.2.6
1、修复了环形队列出队会死锁的问题

Apple 3 days ago
parent
commit
6ef7f5efa0
1 changed files with 1 additions and 1 deletions
  1. 1 1
      module/RingQueue/RingQueue.hpp

+ 1 - 1
module/RingQueue/RingQueue.hpp

@@ -350,7 +350,7 @@ T RingQueue<T>::front()
     
     std::unique_lock<std::mutex> lock(m_mutex);
     m_cond_NoEmpty.wait(lock, [this](){
-        return (!isEmpty() || m_isExit);
+        return (!_isEmpty() || m_isExit);
     });
     if(m_isExit)
     {