wangzhengquan
2020-07-17 1d1c02c006dd9561f8d50ffda5b16e29d81997fd
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);
    
}