From 48ae739d196e8a1ad681e5a54ad992302119bd83 Mon Sep 17 00:00:00 2001 From: wangzhengquan <wangzhengquan85@126.com> Date: 星期六, 25 七月 2020 16:37:36 +0800 Subject: [PATCH] update --- src/queue/include/shm_queue.h | 8 ++++---- 1 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/queue/include/shm_queue.h b/src/queue/include/shm_queue.h index 26bf019..0d8bbaf 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); @@ -99,12 +99,12 @@ { SemUtil::dec( queue->mutex); queue->reference--; - LoggerFactory::getLogger().debug("SHMQueue destructor reference===%d", queue->reference.load()); +//LoggerFactory::getLogger().debug("SHMQueue destructor reference===%d", queue->reference.load()); if(queue->reference.load() == 0) { delete queue; hashtable_t *hashtable = mm_get_hashtable(); hashtable_remove(hashtable, KEY); -printf("SHMQueue destructor delete queue\n"); +// LoggerFactory::getLogger().debug("SHMQueue destructor delete queue\n"); } else { SemUtil::inc(queue->mutex); } @@ -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