From 1f52e58c784503913dfb915d389cbd3ee1a3e005 Mon Sep 17 00:00:00 2001 From: Yedidya Feldblum Date: Sat, 8 Apr 2017 07:08:01 -0700 Subject: [PATCH] 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 --- folly/PriorityMPMCQueue.h | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/folly/PriorityMPMCQueue.h b/folly/PriorityMPMCQueue.h index b1c0a875..fb4e4645 100644 --- a/folly/PriorityMPMCQueue.h +++ b/folly/PriorityMPMCQueue.h @@ -28,7 +28,10 @@ namespace folly { /// not implement a blocking interface. For the purposes of this /// class, lower number is higher priority -template +template < + typename T, + template class Atom = std::atomic, + bool Dynamic = false> class PriorityMPMCQueue { public: PriorityMPMCQueue(size_t numPriorities, size_t capacity) { @@ -91,7 +94,7 @@ class PriorityMPMCQueue { } private: - std::vector> queues_; + std::vector> queues_; }; } // namespace folly -- 2.34.1