Commit 048a4518 authored by Brian Watling's avatar Brian Watling Committed by Jordan DeLong

Trivial argument rename in MPMCQueue

Summary: Rename the 'capacity' argument so g++ will not complain when -Wshadow is enabled ('capacity' is also a method on MPMCQueue)

Test Plan: compiles, unit tests pass

Reviewed By: ngbronson@fb.com

FB internal diff: D1076220
parent d64c6e0d
......@@ -89,11 +89,11 @@ class MPMCQueue : boost::noncopyable {
public:
typedef T value_type;
explicit MPMCQueue(size_t capacity)
: capacity_(capacity)
, slots_(new detail::SingleElementQueue<T,Atom>[capacity +
explicit MPMCQueue(size_t queueCapacity)
: capacity_(queueCapacity)
, slots_(new detail::SingleElementQueue<T,Atom>[queueCapacity +
2 * kSlotPadding])
, stride_(computeStride(capacity))
, stride_(computeStride(queueCapacity))
, pushTicket_(0)
, popTicket_(0)
, pushSpinCutoff_(0)
......
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