421
questions
0
votes
0
answers
4
views
Tracing in LMAX disrupter processing
I am looking for options to be able to fetch and track logs in the flow of handlers processing in LMAX ring buffer, i.e, for an particular message posted into ring buffer, get all its respective logs ...
0
votes
1
answer
73
views
Read from circular FIFO(Buffer) in C language
I have a hardware that writes input data to an address by hardware
The base address or starting circular FIFO is similar to this address 0xc6dc9cf0
Buffer(FIFO) Baseaddress
and has a register for ...
1
vote
0
answers
36
views
Producer-Consumer Problem with Mutexes and pthread_cond_timedwait [closed]
I am working on implementing a producer-consumer problem in C where multiple writer and reader threads interact with a shared buffer. The buffer is managed using four pointers: start, end, read, and ...
-2
votes
1
answer
68
views
uint_MAX wrap around: can I trust it for ringbuffer head and tail?
I have a ringbuffer that stores head and tail index as an unsigned integer value. According to this source it is enough to only wrap at retrieval of the indices and just let the uint behaviour take ...
1
vote
1
answer
286
views
Byte Buffer Ring Buffer type in ESP32
This is my first attempt to use a ring buffer. In my project, I receive data through a loRa module (the Reyax RYLR998 specifically) and push every message I receive to the ring buffer.
I defined a ...
1
vote
1
answer
312
views
How to implement a ring buffer safely in shared memory safely when the consumer is operating in real-time context
My situation is this: On a Linux machine I have a shared-memory region inside which lives a ring-buffer of audio samples. This ring-buffer's consumer is a hard-real-time Xenomai audio-callback, so ...
0
votes
0
answers
82
views
Segmentation Fault with Circular Buffer Implemenation
I am implementing a circular buffer but I am getting a confusing segmentation fault when I am testing my implementation. The code seems to produce a segfault right after I call a function to print out ...
1
vote
0
answers
201
views
How to wrap around a ring buffer?
I am trying to implement a ring buffer in C to an external flash memory. For reference the flash memory is BR24G32-3 with 4kb.
I am having difficulties when it comes to the wrap around. After writing ...
0
votes
1
answer
54
views
How to wait for all Disruptor messages to be consumed in a test case
I'm trying to unit test an application which publishes/consumes messages using the Disruptor ring buffer. In the test I would like to
Configure the Disruptor and it's EventHandlers
Publish messages ...
1
vote
1
answer
401
views
==284==ERROR: AddressSanitizer: stack-buffer-underflow
I am writing a more simple version of the Boyer Moore algorithm, and I need to use circular buffer because there could be a really big input. The program should write all positions of symbols which ...
1
vote
1
answer
301
views
Use of volatile in circular buffers with interrupts
I am struggling with the correct use of the volatile keyword when implementing a circular buffer. The buffer is written in an ISR and read in the main program. I am running a bare-metal ...
12
votes
0
answers
8k
views
Why is the circular buffer not standardized in C++?
I want to know the history of the standardization of the circular buffer(circular queue or deque).
AFAIK, the current C++ standard(C++ 2023) doesn't provide a circular buffer in the STL. I googled and ...
2
votes
1
answer
546
views
How to safely overwrite data in a full circular_buffer in C++
I currently try to wrap my head around how to safely handle the case that a circular buffer is full and the producer wants to insert data into it.
The reason is that I have a classic producer-consumer ...
0
votes
1
answer
64
views
How to speed up data imports from ring buffers in a java client?
We have a third party application producing data at a very high speed and storing it in multiple ring buffers (hazelcast cluster).
The consumer application (another third party app) uses this java ...
0
votes
0
answers
192
views
Ring buffers of android logcat
The result of data below is from "adb logcat -d -b V:*". As I know, each of ring buffers - 'main, system, crash, events, radio is separate. But as you can see, log data is continuous. How ...