From fb469842598da834a33f2d5fee223d07dab53dad Mon Sep 17 00:00:00 2001 From: wangzhengquan <wangzhengquan85@126.com> Date: 星期四, 16 七月 2020 12:12:20 +0800 Subject: [PATCH] update --- queue/include/array_lock_free_queue.h | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/queue/include/array_lock_free_queue.h b/queue/include/array_lock_free_queue.h index 0ba35ae..24a4ec6 100644 --- a/queue/include/array_lock_free_queue.h +++ b/queue/include/array_lock_free_queue.h @@ -94,7 +94,7 @@ ,m_count(0) // #endif { - m_theQueue = (ELEM_T*)Allocator::malloc(Q_SIZE * sizeof(ELEM_T)); + m_theQueue = (ELEM_T*)Allocator::allocate(Q_SIZE * sizeof(ELEM_T)); } @@ -102,7 +102,7 @@ ArrayLockFreeQueue<ELEM_T, Allocator>::~ArrayLockFreeQueue() { // std::cout << "destroy ArrayLockFreeQueue\n"; - Allocator::free(m_theQueue); + Allocator::deallocate(m_theQueue); } -- Gitblit v1.8.0