Add thread-safe priority queue with arbitrary priorities using flat combining
Summary: This template uses flat combining and takes any sequential priority queue implementation that supports the `std::priority_queue` interface (`empty()`, `size()`, `push()`, `top()`, `pop()`) and any lock that meets the standard //Lockable// requirements to implement a thread-safe priority queue that supports arbitrary priorities. The template supports both unbounded and bounded size, and blocking, non-blocking, and timed variants of push, pop, and peek operations. Reviewed By: djwatson Differential Revision: D4873602 fbshipit-source-id: 96e1548b4f7427ecd2ee2ead7a19993df4441b33
Showing
Please register or sign in to comment