cameron314 / concurrentqueue

A fast multi-producer, multi-consumer lock-free concurrent queue for C++11
Other
9.53k stars 1.66k forks source link

how to add the capacity of ordering by priority to continuously #340

Open zyxgis opened 1 year ago

zyxgis commented 1 year ago

i have a producer which will continuously generate many task objects which need to be processed by its priority .

how i can use this concurrentqueue as concurrent priority queue?

cameron314 commented 1 year ago

Not supported. But you could try using a series of queues, one for each level of priority you need.