Common: Move FixedSizeQueue into Common namespace

Gets this out of the global namespace.
This commit is contained in:
Lioncash
2023-03-22 01:23:15 -04:00
parent 4ae4a28465
commit 0f326c6067
4 changed files with 8 additions and 5 deletions
+1 -1
View File
@@ -29,7 +29,7 @@ private:
std::unique_ptr<DPL2FSDecoder> m_fsdecoder;
std::array<float, 32768> m_float_conversion_buffer;
FixedSizeQueue<float, 32768> m_decoded_fifo;
Common::FixedSizeQueue<float, 32768> m_decoded_fifo;
};
} // namespace AudioCommon
+3
View File
@@ -13,6 +13,8 @@
//
// Not fully featured, no safety checking yet. Add features as needed.
namespace Common
{
template <class T, int N>
class FixedSizeQueue
{
@@ -84,3 +86,4 @@ private:
// Sacrifice 4 bytes for a simpler implementation. may optimize away in the future.
int count = 0;
};
} // namespace Common
+1 -1
View File
@@ -52,5 +52,5 @@ private:
static constexpr int MAX_LOG_LINES = 5000;
std::mutex m_log_mutex;
FixedSizeQueue<LogEntry, MAX_LOG_LINES> m_log_ring_buffer;
Common::FixedSizeQueue<LogEntry, MAX_LOG_LINES> m_log_ring_buffer;
};