Intel® oneAPI Threading Building Blocks
Ask questions and share information about adding parallelism to your applications when using this threading library.

custom priority_queue_node

Hawkes__Rycharde
New Contributor I
290 Views

I'm missing in the tbb::flow::priority_queue_node the ability to trim away to the end of the queue the messages of priorities below the threshold, else there could be a million of lower priority messages that would still be unneccessary processed one by one in the end. Besides, keeping the priority queue as compact as possible is probably better for memory and search effectiveness. So as soon a better idea of the thresold is known I'd like to be able to call into the priority queue to purge it. How could I accomplish it?

Thanks,
Igor

0 Kudos
0 Replies
Reply