Commit 1f52e58c authored by Yedidya Feldblum's avatar Yedidya Feldblum Committed by Facebook Github Bot

All template params for PriorityMPMCQueue

Summary:
[Folly] All template params for `PriorityMPMCQueue`.

Mimic the suite of template params of `MPMCQueue`.

Reviewed By: magedm

Differential Revision: D4857179

fbshipit-source-id: 3d441099c46ea1223155bd3f4cc819595814c47b
parent 3e09d2ba
...@@ -28,7 +28,10 @@ namespace folly { ...@@ -28,7 +28,10 @@ namespace folly {
/// not implement a blocking interface. For the purposes of this /// not implement a blocking interface. For the purposes of this
/// class, lower number is higher priority /// class, lower number is higher priority
template <class T> template <
typename T,
template <typename> class Atom = std::atomic,
bool Dynamic = false>
class PriorityMPMCQueue { class PriorityMPMCQueue {
public: public:
PriorityMPMCQueue(size_t numPriorities, size_t capacity) { PriorityMPMCQueue(size_t numPriorities, size_t capacity) {
...@@ -91,7 +94,7 @@ class PriorityMPMCQueue { ...@@ -91,7 +94,7 @@ class PriorityMPMCQueue {
} }
private: private:
std::vector<folly::MPMCQueue<T>> queues_; std::vector<folly::MPMCQueue<T, Atom, Dynamic>> queues_;
}; };
} // namespace folly } // namespace folly
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment