RingBuffer 环形缓冲区 简介 项目未能实现线程安全,仅供学习参考,工程项目请谨慎使用!!! RingBuffer 是一个基于C语言开发的环形缓冲区,适用于各嵌入式平台的串口收发等应用场景;在基本功能的基础上还提供了一个分段记录框架,方便数据管理;代码在AT32F403A平台上编译运行,经过简单的串口收发测试后暂未发现显性BUG
ring_buffer.h README Apache-2.0 license RingBuffer 轻量级环形缓冲区 简介 RingBuffer 是一个基于C语言开发的轻量级环形缓冲区,适用于各嵌入式平台的串口收发等应用场景; 相较于普通的收发缓冲数组,环形缓冲区的操作更加简单,性能更加强大;使用 RingBuffer 提供的函数,可以轻松实现数据的读写、查询、删除等操作,不...
RingBuffer modify: main test support *unix system 4年前 .gitattributes Added .gitattributes 7年前 .gitignore modify: git ignore output build etc.. 4年前 CMakeLists.txt add: support cmake build 4年前 LICENSE Add license update IDE version ...
ringbufferring-buffersyncronizationtimespecallocatorshexdumperbitmap-dumparena-allocatorbitmap-allocator UpdatedApr 11, 2025 C karlobratko/spsc-fifo Star0 Single-Producer Single-Consumer Lock Free Ring Queue cqueueatomicring-bufferlock-freefifo
example jnk0le::Ringbuffer<const char*, 256> message; int main() { //... while(1) { const char* tmp = nullptr; while(!message.remove(tmp)); printf("%s fired\n", tmp); //... } } extern "C" void SysTick_Handler(void) { message.insert("SysTick_Handler"); } About...
charb;RingBuf_Dequeue(&ring_buffer,&b);// Take one element from the buffer and save to b; RingBuf_Dequeue(pointer to buffer, pointer to variable to save)printf("%c",b);// Will print "a"charc[6];memset(c,0,6);// Fill c with zerosRingBuf_DequeueArr(&ring_buffer,c,5);// ...
bugparty/RingBufferCppmain BranchesTags Code Folders and files Latest commit Cannot retrieve latest commit at this time. History2 Commits .idea CMakeLists.txt LICENSE RingBuffer.hpp main.cpp Repository files navigation MIT license MIT License Copyright (c) 2022 ClayM0re Permission is hereby...
RingBuffer/src/test.c Go to file Copy path 50 lines (37 sloc)1.15 KB RawBlame #include<glib.h> #include"ringbuffer.h" intmain(intargc,constchar*argv[]) { t_ring_buffer *r =NULL; intelem1 =4; intelem2 =6; intelem3 =2;
Lock free ringbuffer for real time synchronisation Ringbuffer (circular FIFO) Marc_G 2016 We need two FIFOs: one for realtime audio to enter and one for outgoing. Real time audio input JACK writes into FIFO (push) and is never held back by FIFO full. Analysis reads from FIFO (pop) ...
main.c ringbuffer C ring / circular buffer implementation. This is a C NetBeans project, compiled with GCC 5.4.0 and tested with Ubuntu Linux 16.04.5 LTS x64. No leak detected using Valgrind. This piece of software is a classic implementation of a ring buffer structure following this descr...