From bec08358369930d4631f472fce94f8adb31cdc6b Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Mon, 30 Jun 2008 02:42:40 +0000 Subject: Add a generic ring buffer implementation This piece of code is from the JACK Audio Connection Kit (trimmed down a bit for better readability). The vector functions now reuse the common iovec struct used by writev/readv instead of reinventing an identical but differently-named struct. From the comments: > ISO/POSIX C version of Paul Davis's lock free ringbuffer C++ code. > This is safe for the case of one read thread and one write thread. License is LGPL 2.1 or later git-svn-id: https://svn.musicpd.org/mpd/trunk@7386 09075e82-0dd4-0310-85a5-a0d7c8717e4f --- src/Makefile.am | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/Makefile.am') diff --git a/src/Makefile.am b/src/Makefile.am index 6d709c38a..9e053ef3e 100644 --- a/src/Makefile.am +++ b/src/Makefile.am @@ -66,6 +66,7 @@ mpd_headers = \ playerData.h \ playlist.h \ replayGain.h \ + ringbuf.h \ signal_check.h \ sig_handlers.h \ sllist.h \ @@ -122,6 +123,7 @@ mpd_SOURCES = \ playerData.c \ playlist.c \ replayGain.c \ + ringbuf.c \ sig_handlers.c \ signal_check.c \ sllist.c \ -- cgit v1.2.3