custom priority_queue_node

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

1 contenuto / 0 nuovi
Per informazioni complete sulle ottimizzazioni del compilatore, consultare l'Avviso sull'ottimizzazione