From e169b50d548bc23021bea6f8971e3094e6bc216b Mon Sep 17 00:00:00 2001
From: wangzhengquan <wangzhengquan85@126.com>
Date: 星期五, 10 七月 2020 15:43:14 +0800
Subject: [PATCH] update

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

diff --git a/queue/include/shm_queue.h b/queue/include/shm_queue.h
index 70cd9cc..16e0d66 100644
--- a/queue/include/shm_queue.h
+++ b/queue/include/shm_queue.h
@@ -82,10 +82,11 @@
 {
     queue->reference--;
     LoggerFactory::getLogger().debug("SHMQueue destructor  reference===%d", queue->reference.load());
-    if(queue->reference == 0) {
+    if(queue->reference.load() == 0) {
         delete queue;
         hashtable_t *hashtable = getHashTable();
         hashtable_remove(hashtable, KEY);
+        LoggerFactory::getLogger().debug("SHMQueue destructor delete queue");
     }
 }
 

--
Gitblit v1.8.0