From 03987ef3d1ed9c2d604561a69db169cd535014b6 Mon Sep 17 00:00:00 2001
From: wangzhengquan <wangzhengquan85@126.com>
Date: 星期六, 25 七月 2020 16:17:04 +0800
Subject: [PATCH] commit

---
 src/queue/include/shm_queue.h |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/queue/include/shm_queue.h b/src/queue/include/shm_queue.h
index 26bf019..91e9530 100644
--- a/src/queue/include/shm_queue.h
+++ b/src/queue/include/shm_queue.h
@@ -32,7 +32,7 @@
    
     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 push_timeout(const ELEM_T &a_data, const 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);
@@ -146,7 +146,7 @@
 }
 
 template < typename ELEM_T >
-inline bool SHMQueue<ELEM_T>::push_timeout(const ELEM_T &a_data, struct timespec * timeout)
+inline bool SHMQueue<ELEM_T>::push_timeout(const ELEM_T &a_data, const struct timespec * timeout)
 {
 
     return queue->push_timeout(a_data, timeout);

--
Gitblit v1.8.0