From: Yedidya Feldblum Date: Sat, 8 Apr 2017 14:08:01 +0000 (-0700) Subject: All template params for PriorityMPMCQueue X-Git-Tag: v2017.04.10.00~1 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=1f52e58c784503913dfb915d389cbd3ee1a3e005;p=folly.git 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 --- 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