From 379f42982b8c57ee6511cb8e498019f454323977 Mon Sep 17 00:00:00 2001 From: wangzhengquan <wangzhengquan85@126.com> Date: 星期二, 07 七月 2020 11:04:39 +0800 Subject: [PATCH] update --- test/test.h | 12 +++++++----- 1 files changed, 7 insertions(+), 5 deletions(-) diff --git a/test/test.h b/test/test.h index 76aa358..c80ad70 100644 --- a/test/test.h +++ b/test/test.h @@ -21,12 +21,14 @@ }; // 閿�姣佸叡浜唴瀛樺拰淇″彿 -void destroy() { +void destroy(int key) { - LockFreeQueue<struct Item> *queue = QueueFactory::createQueue<struct Item> (1, 16); - //queue->~LockFreeQueue(); - delete queue; - mm_deinit(); + // LockFreeQueue<struct Item> *queue = QueueFactory::createQueue<struct Item> (1, 16); + // //queue->~LockFreeQueue(); + // delete queue; + + QueueFactory::dropQueue<struct Item>(key); + mm_destroy(); } -- Gitblit v1.8.0