Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

I use my own very similar version of this spsc lock-free ring buffer on almost every embedded project I work on that has to stream any sort of sampled data (e.g. audio). You can even have the consumer end be a DMA into something like a uart or USB peripheral so your microcontroller userspace doesn't have to touch the hardware.


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: