From 379f42982b8c57ee6511cb8e498019f454323977 Mon Sep 17 00:00:00 2001 From: wangzhengquan <wangzhengquan85@126.com> Date: 星期二, 07 七月 2020 11:04:39 +0800 Subject: [PATCH] update --- squeue/include/lock_free_queue_impl.h | 10 ++++++++++ 1 files changed, 10 insertions(+), 0 deletions(-) diff --git a/squeue/include/lock_free_queue_impl.h b/squeue/include/lock_free_queue_impl.h index f11a796..aa182a5 100644 --- a/squeue/include/lock_free_queue_impl.h +++ b/squeue/include/lock_free_queue_impl.h @@ -2,6 +2,8 @@ #define __LOCK_FREE_QUEUE_IMPL_H__ #include <assert.h> // assert() +#include "mm.h" +#include "sem_util.h" template < typename ELEM_T, @@ -32,6 +34,14 @@ inline bool LockFreeQueue<ELEM_T, Q_TYPE>::full() { return m_qImpl.full(); +} + +template < + typename ELEM_T, + template <typename T> class Q_TYPE> +inline bool LockFreeQueue<ELEM_T, Q_TYPE>::empty() +{ + return m_qImpl.empty(); } template < -- Gitblit v1.8.0