9 TestClass(
size_t capacity,
size_t num_threads) {
10 queue_ =
new tbb::concurrent_bounded_queue<T>();
14 return "TBB Bounded Queue";
22 return queue_->try_push(val);
25 return queue_->try_pop(val);
29 tbb::concurrent_bounded_queue<T> *
queue_;
void detach_thread()
Definition: tbb_API.h:19
std::atomic< T > * queue_
Definition: lock_API.h:76
TestClass(size_t capacity, size_t num_threads)
Definition: tbb_API.h:9
bool dequeue(T &val)
Definition: tbb_API.h:24
bool enqueue(T val)
Definition: tbb_API.h:21
void attach_thread()
Definition: tbb_API.h:17
Definition: blank_api.h:31
char * name()
Definition: tbb_API.h:13