A template for ring buffer implementation
Dependents: AwsomeStation LoRaBaseStation LoRaTerminal
Diff: RingBuffer.h
- Revision:
- 7:3e06927ef5ec
- Parent:
- 3:21ee07b29eb7
--- a/RingBuffer.h Sat Sep 03 05:41:23 2016 +0000 +++ b/RingBuffer.h Thu Sep 02 00:16:51 2021 +0000 @@ -7,7 +7,7 @@ #include <stdlib.h> template <typename T> -class CircularBuffer +class RingBuffer { private: const size_t buffer_size; @@ -26,8 +26,8 @@ public: - CircularBuffer(const size_t size=DEFAULT_MAX_BUFFER_SZ); - ~CircularBuffer(); + RingBuffer(const size_t size=DEFAULT_MAX_BUFFER_SZ); + ~RingBuffer(); // psudo mutex bool isLocked();