aboutsummaryrefslogtreecommitdiffstats
path: root/common/ringbuffer.h
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2023-12-10 12:58:18 -0800
committerChris Robinson <[email protected]>2023-12-10 12:58:18 -0800
commitcf37d92442ccf3c7f4b979bd97282dcbe28ca64a (patch)
tree3b96251062c9c6ea97aea3190e22ea68e1377e18 /common/ringbuffer.h
parent073d79c2047143e70bb199077fe3c8dbafe0a606 (diff)
Refactor FlexArray
This avoids using an array of 1 as a flexible array member, and instead uses a span to reference the memory after itself.
Diffstat (limited to 'common/ringbuffer.h')
-rw-r--r--common/ringbuffer.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/common/ringbuffer.h b/common/ringbuffer.h
index 718238a3..a2b820eb 100644
--- a/common/ringbuffer.h
+++ b/common/ringbuffer.h
@@ -7,6 +7,7 @@
#include <utility>
#include "almalloc.h"
+#include "flexarray.h"
/* NOTE: This lockless ringbuffer implementation is copied from JACK, extended