31 virtual void enqueue(
const T item,
const int tid) = 0;
32 virtual T
dequeue(
const int tid) = 0;
41 virtual void enqueue(
const T item,
const int) {
61 void enqueue(T item,
const int tid);
77 virtual void enqueue(T item,
const int tid) {
85 static void*
operator new(
const size_t size) {
90 static void operator delete(
void *
ptr) {free(
ptr);}
93 assert(
sizeof(T) ==
sizeof(
void*));
98 #endif // QUEUES_HPP__
Definition: queues.hpp:37
void *volatile ptr
Definition: counted_ptr.hpp:57
void enqueue(T item, const int tid)
Definition: queues.cpp:254
MS_queue(const int tid)
Definition: queues.cpp:232
counted_ptr tail
Definition: queues.hpp:59
Definition: counted_ptr.hpp:20
virtual void enqueue(const T item, const int tid)=0
virtual T dequeue(const int tid)=0
concurrent_queue(const int tid)
Definition: queues.hpp:92
virtual ~concurrent_queue()
Definition: queues.hpp:95
long push
Definition: queue.c:83
counted_ptr head
Definition: queues.hpp:58
virtual T dequeue(const int tid)
Definition: queues.hpp:80
long pop
Definition: queue.c:82
T dequeue(const int tid)
Definition: queues.cpp:293
Definition: queues.hpp:29
queue< T > queue_impl
Definition: queues.hpp:39
virtual T dequeue(int)
Definition: queues.hpp:45
concurrent_queue & operator=(const concurrent_queue &)
virtual void enqueue(const T item, const int)
Definition: queues.hpp:41
virtual ~sequential_queue()
Definition: queues.hpp:51
Definition: queues.hpp:69
concurrent_queue(const concurrent_queue &)
virtual ~simple_queue()
Definition: queues.hpp:33
virtual ~MS_queue()
Definition: queues.hpp:64
virtual void enqueue(T item, const int tid)
Definition: queues.hpp:77
Definition: queues.hpp:57