summaryrefslogtreecommitdiff
path: root/kernel/src/utils/ringbuffer.hpp
diff options
context:
space:
mode:
authorcpplover0 <osdev555@yandex.com>2026-03-30 18:21:18 +0300
committercpplover0 <osdev555@yandex.com>2026-03-30 18:21:18 +0300
commit8844a7888ea94a11939b1c92915162f2e5acd378 (patch)
tree1b4ef74fde17d6f8bb6e054f3266e9342b41c836 /kernel/src/utils/ringbuffer.hpp
parentbe997311c240f49db247ccce05ecb8ea5d3bfc31 (diff)
trying to get xhci working on vboxHEADmain
Diffstat (limited to 'kernel/src/utils/ringbuffer.hpp')
-rw-r--r--kernel/src/utils/ringbuffer.hpp4
1 files changed, 0 insertions, 4 deletions
diff --git a/kernel/src/utils/ringbuffer.hpp b/kernel/src/utils/ringbuffer.hpp
index d6f6c2c..12b2ef2 100644
--- a/kernel/src/utils/ringbuffer.hpp
+++ b/kernel/src/utils/ringbuffer.hpp
@@ -46,8 +46,6 @@ namespace utils {
objs[tail].cycle = cycle;
objs[tail].data = item;
- write_counter++;
-
if (++tail == size) {
tail = 0;
cycle = !cycle;
@@ -69,7 +67,6 @@ namespace utils {
while (count < max && objs[q].cycle == (std::uint32_t)c) {
out[count] = objs[q].data;
- read_counter++;
if (++q == size) {
q = 0;
@@ -85,7 +82,6 @@ namespace utils {
return count;
}
- std::uint64_t get_write_count() const { return write_counter; }
};
} \ No newline at end of file