wangzhengquan
2020-07-17 3afe38168c44b59f1732f2d55ec08b8f81d879bc
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);
    
}