comparison base/RingBuffer.h @ 1829:51fd27fbce9a audio-source-refactor

Might as well use the aligning allocator here, though it'll make no real difference
author Chris Cannam
date Fri, 20 Mar 2020 16:30:16 +0000
parents 6e218407f0cf
children
comparison
equal deleted inserted replaced
1828:618326c4ce4b 1829:51fd27fbce9a
156 156
157 RingBuffer(const RingBuffer &) =default; 157 RingBuffer(const RingBuffer &) =default;
158 RingBuffer &operator=(const RingBuffer &) =default; 158 RingBuffer &operator=(const RingBuffer &) =default;
159 159
160 protected: 160 protected:
161 std::vector<T> m_buffer; 161 std::vector<T, breakfastquay::StlAllocator<T>> m_buffer;
162 int m_writer; 162 int m_writer;
163 std::vector<int> m_readers; 163 std::vector<int> m_readers;
164 int m_size; 164 int m_size;
165 }; 165 };
166 166