Skip to main content
2 votes
1 answer
210 views

I am playing with a toy circular buffer where MT involves: #include <stdio.h> #include <stdlib.h> #include <pthread.h> #include <semaphore.h> #define N 8 int *arr; int ...
PkDrew's user avatar
  • 2,291
1 vote
3 answers
85 views

I have pointer into a delay line that I wish to update. If the pointer (p) goes past the end of the buffer, I wish to wrap around to the start plus some value. _Complex float buffer[BUF_LEN]; ...
james's user avatar
  • 21
0 votes
1 answer
133 views

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 ...
pirozy's user avatar
  • 1
-1 votes
1 answer
141 views

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 ...
glades's user avatar
  • 5,356
1 vote
1 answer
744 views

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 ...
Andy Duarte's user avatar
1 vote
1 answer
719 views

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 ...
Jeremy Friesner's user avatar
0 votes
0 answers
100 views

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 ...
andresah's user avatar
1 vote
0 answers
326 views

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 ...
Flavio Andrade's user avatar
0 votes
1 answer
114 views

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 ...
lance-java's user avatar
  • 29.4k
1 vote
1 answer
960 views

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 ...
papacuma's user avatar
1 vote
1 answer
552 views

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 ...
makas005's user avatar
20 votes
1 answer
18k views

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 ...
relent95's user avatar
  • 5,084
2 votes
1 answer
940 views

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 ...
Raimund Schlüßler's user avatar
0 votes
1 answer
79 views

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 ...
Andy Dufresne's user avatar
0 votes
0 answers
317 views

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 ...
SimDDang's user avatar

15 30 50 per page
1
2 3 4 5
28