Increase ring buffer size

This commit is contained in:
blankie 2023-01-21 15:54:30 +07:00
parent d1d096d3cb
commit d5b1840606
Signed by: blankie
GPG Key ID: CC15FC822C7F61F5
1 changed files with 2 additions and 2 deletions

4
arb.h
View File

@ -3,7 +3,7 @@
#include <atomic> #include <atomic>
#include "logcat_thread.h" #include "logcat_thread.h"
#define ARB_MAX_SIZE 16 #define ARB_MAX_SIZE 255
template<typename T> template<typename T>
class AtomicRingBuffer { class AtomicRingBuffer {
@ -15,7 +15,7 @@ public:
private: private:
size_t _read = 0; size_t _read = 0;
size_t _write = 0; size_t _write = 0;
std::atomic<char> _used = 0; std::atomic<unsigned char> _used = 0;
T _items[ARB_MAX_SIZE]; T _items[ARB_MAX_SIZE];
}; };