src/queue/include/shm_queue.h | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 |
src/queue/include/shm_queue.h
@@ -68,6 +68,7 @@ } } if (!found) { // 销毁共享内存的queue mqueue = (LockFreeQueue<ELEM_T, SHM_Allocator> *)hashtable_get(hashtable, *keyItr); delete mqueue; hashtable_remove(hashtable, *keyItr); @@ -82,6 +83,7 @@ hashtable_t *hashtable = mm_get_hashtable(); LockFreeQueue<ELEM_T, SHM_Allocator> *mqueue; for(int i = 0; i< length; i++) { // 销毁共享内存的queue mqueue = (LockFreeQueue<ELEM_T, SHM_Allocator> *)mm_get_by_key(keys[i]); delete mqueue; hashtable_remove(hashtable, keys[i]);