From 4f3f598e6f3705936e09a0508b1e1bbbbbe683b3 Mon Sep 17 00:00:00 2001 From: zhangmeng <775834166@qq.com> Date: 星期一, 20 七月 2020 17:46:40 +0800 Subject: [PATCH] change makefile --- 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