Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Hawkes__Rycharde
New Contributor I
66 Views

custom priority_queue_node

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