1 #ifndef __TSIGAS_BUFFER_H__
2 #define __TSIGAS_BUFFER_H__
4 #include <cds/container/tsigas_cycle_queue.h>
8 #define USING_CDS_LIB 1
18 return "CDS Tsiagas Cycle Queue";
22 cds::threading::Manager::attachThread();
26 cds::threading::Manager::detachThread();
30 return queue_->enqueue(val);
33 return queue_->dequeue(val);
37 typedef cds::container::TsigasCycleQueue<T,
38 cds::opt::buffer< cds::opt::v::dynamic_buffer<T> > >
TQueue;
42 #endif // __TSIGAS_BUFFER_H__
void detach_thread()
Definition: tsigas_API.h:25
std::atomic< T > * queue_
Definition: lock_API.h:76
TQueue * queue_
Definition: tsigas_API.h:39
TestClass(size_t capacity, size_t num_threads)
Definition: tsigas_API.h:13
bool dequeue(T &val)
Definition: tsigas_API.h:32
bool enqueue(T val)
Definition: tsigas_API.h:29
void attach_thread()
Definition: tsigas_API.h:21
cds::container::TsigasCycleQueue< T, cds::opt::buffer< cds::opt::v::dynamic_buffer< T > > > TQueue
Definition: tsigas_API.h:34
Definition: blank_api.h:31
char * name()
Definition: tsigas_API.h:17