TBB Concurrent Queue is a header-only version of the Concurrent Queue provided by the library Threading Building Blocks (TBB).
#include <tbb/header_only/concurrent_queue.h>
#include <iostream>
int main() {
tbb::concurrent_bounded_queue<int> queue;
for (int i = 0; i < 10; i++)
{
queue.push(i);
}
int n;
while (!queue.empty())
{
queue.pop(n);
std::cout << n << std::endl;
}
return 0;
}
Read the full documentation on the Intel Website