[LAU] Simple, easy multithreaded circular buffer library for Linux?

Leslie P. Polzer sky at viridian-project.de
Tue Oct 14 03:21:07 EDT 2008


> I'm being lazy, so instead of researching everything that's out there, I'll ask here:
> can anyone recommend a relatively simple and painless abstraction library (GPL or LGPL
> of course) that will give me functions to create a thread in which I can stuff things
> into a ring buffer, and another thread in which I can pull stuff out of it?

http://jack-rack.cvs.sourceforge.net/viewvc/jack-rack/jack-rack/src/lock_free_fifo.h?revision=1.2&view=markup

http://jack-rack.cvs.sourceforge.net/viewvc/jack-rack/jack-rack/src/lock_free_fifo.c?revision=1.5&view=markup

JACK Rack provides a usage example, of course.

You using C(++)? Any reason you're not giving a dynamic language
(Common Lisp comes to mind) a shot?

  Leslie




More information about the Linux-audio-user mailing list