#include "MultiPseudoStack.h" #include #include #define INVALID ((int32_t)0xffffffff) #define MAX ((int32_t)0x7fffffff) QueueListItem::QueueListItem(void) :memory(0), size(0) { } LockFreeQueue::LockFreeQueue(qli_t *data_, int n) :data(data_), elms(n), next_r(0), next_w(0), avail(0) { tag = new std::atomic[n]; for(int i=0; i