From 91f003aac4c95f4d2a2fc0782c9bea9d484b6919 Mon Sep 17 00:00:00 2001
From: wangzhengquan <wangzhengquan85@126.com>
Date: 星期四, 09 七月 2020 14:48:07 +0800
Subject: [PATCH] update

---
 queue/include/shm_queue.h |   26 +++-----------------------
 1 files changed, 3 insertions(+), 23 deletions(-)

diff --git a/squeue/include/shm_queue.h b/queue/include/shm_queue.h
similarity index 79%
rename from squeue/include/shm_queue.h
rename to queue/include/shm_queue.h
index 0bcc3db..70cd9cc 100644
--- a/squeue/include/shm_queue.h
+++ b/queue/include/shm_queue.h
@@ -9,9 +9,6 @@
 
 // default Queue size
 // #define LOCK_FREE_Q_DEFAULT_SIZE 16
-
-//  
-
  
 template < typename ELEM_T>
 class SHMQueue
@@ -37,35 +34,18 @@
     /// @brief constructor of the class
     SHMQueue(int key=0, size_t qsize = LOCK_FREE_Q_DEFAULT_SIZE);
     
-    /// @brief destructor of the class. 
-    /// Note it is not virtual since it is not expected to inherit from this
-    /// template
+    
     ~SHMQueue();
 
-    /// @brief returns the current number of items in the queue
-    /// It tries to take a snapshot of the size of the queue, but in busy environments
-    /// this function might return bogus values. 
-    ///
-    /// If a reliable queue size must be kept you might want to have a look at 
-    /// the preprocessor variable in this header file called '_WITH_LOCK_FREE_Q_KEEP_REAL_SIZE'
-    /// it enables a reliable size though it hits overall performance of the queue 
-    /// (when the reliable size variable is on it's got an impact of about 20% in time)
+   
     inline uint32_t size();
-    
-    /// @brief return true if the queue is full. False otherwise
-    /// It tries to take a snapshot of the size of the queue, but in busy 
-    /// environments this function might return bogus values. See help in method
-    /// SHMQueue::size
+ 
     inline bool full();
-
     inline bool empty();
-
    
     inline bool push(const ELEM_T &a_data);
     inline bool push_nowait(const ELEM_T &a_data);
     inline bool push_timeout(const ELEM_T &a_data, struct timespec * timeout);
-
-  
     inline bool pop(ELEM_T &a_data);
     inline bool pop_nowait(ELEM_T &a_data);
     inline bool pop_timeout(ELEM_T &a_data, struct timespec * timeout);

--
Gitblit v1.8.0