浏览代码

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

Apple 5 天之前
父节点
当前提交
6ef7f5efa0
共有 1 个文件被更改,包括 1 次插入1 次删除
  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)
     {