Add define guards around ring buffer

This commit is contained in:
2026-02-18 16:45:26 -05:00
parent 107f185527
commit 7b9aa3cd95

View File

@@ -2,6 +2,9 @@
#include <mutex> #include <mutex>
#include <optional> #include <optional>
#ifndef RINGBUFFER_H
#define RINGBUFFER_H
template <typename T> template <typename T>
class RingBuffer { class RingBuffer {
public: public:
@@ -147,3 +150,5 @@ private:
// mutable allows const functions to modify/lock the mutex // mutable allows const functions to modify/lock the mutex
mutable std::mutex m_mutex; mutable std::mutex m_mutex;
}; };
#endif //RINGBUFFER_H