mirror of
https://github.com/BotChain-Robots/firmware.git
synced 2026-07-08 09:37:21 +02:00
Add define guards around ring buffer
This commit is contained in:
@@ -2,6 +2,9 @@
|
||||
#include <mutex>
|
||||
#include <optional>
|
||||
|
||||
#ifndef RINGBUFFER_H
|
||||
#define RINGBUFFER_H
|
||||
|
||||
template <typename T>
|
||||
class RingBuffer {
|
||||
public:
|
||||
@@ -147,3 +150,5 @@ private:
|
||||
// mutable allows const functions to modify/lock the mutex
|
||||
mutable std::mutex m_mutex;
|
||||
};
|
||||
|
||||
#endif //RINGBUFFER_H
|
||||
|
||||
Reference in New Issue
Block a user