concurrentqueue icon indicating copy to clipboard operation
concurrentqueue copied to clipboard

How to use Concurrent queue with std::vector

Open harshad-0302 opened this issue 1 year ago • 1 comments

I have to create new queue with each thread creation. The number of queues which will be created is not fixed . Therefore I can't use static array. So i wanted to ask how to use concurrent queue with std::vector.? How to initialize & pass values for min elements , no of producers .?

harshad-0302 avatar Apr 30 '24 08:04 harshad-0302

Look into thread_local.

cameron314 avatar Apr 30 '24 12:04 cameron314