This PR refactors blocking_queue to be generic over the underlying queue type used to implement it. Previously it always used std::queue. This PR introduces an alias for an alternative which instead uses std::priority_queue. This is useful when you need a queue shared between multiple consumers and producers, but need to prioritize certain elements.
This PR refactors
blocking_queue
to be generic over the underlying queue type used to implement it. Previously it always usedstd::queue
. This PR introduces an alias for an alternative which instead usesstd::priority_queue
. This is useful when you need a queue shared between multiple consumers and producers, but need to prioritize certain elements.