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.h | 4 +++- 1 files changed, 3 insertions(+), 1 deletions(-) diff --git a/squeue/include/lock_free_queue.h b/squeue/include/lock_free_queue.h index a800228..a8f7801 100644 --- a/squeue/include/lock_free_queue.h +++ b/squeue/include/lock_free_queue.h @@ -88,6 +88,8 @@ /// environments this function might return bogus values. See help in method /// LockFreeQueue::size inline bool full(); + + inline bool empty(); /// @brief push an element at the tail of the queue /// @param the element to insert in the queue @@ -139,7 +141,7 @@ inline uint32_t size(); inline bool full(); - + inline bool empty(); bool push(const ELEM_T &a_data); -- Gitblit v1.8.0