aboutsummaryrefslogtreecommitdiffstats
path: root/src/ringbuf.h (unfollow)
Commit message (Collapse)AuthorFilesLines
2008-11-02removed unused sourcesMax Kellermann1-227/+0
Cleaning up artifacts from a merge gone wrong. Also remove the ringbuf library, which is not being used.
2008-10-31added prefix to header macrosMax Kellermann1-2/+2
"LOG_H" is a macro which is also used by ffmpeg/log.h. This is ffmpeg's fault, because short macros should be reserved for applications, but since it's always a good idea to choose prefixed macro names, even for applications, we are going to do that in MPD.
2008-10-08don't include os_compat.hMax Kellermann1-1/+2
When there are standardized headers, use these instead of the bloated os_compat.h.
2008-08-25fixed ringbuf.c warningsMax Kellermann1-1/+1
Fix a "signed/unsigned comparison warning", and several void pointer math warnings.
2008-06-30ringbuf: add thread-safe, thread-specific reset functionsEric Wong1-0/+18
This will allow both the reader and writer threads to reset the ringbuffer in a thread-safe fashion. git-svn-id: https://svn.musicpd.org/mpd/trunk@7390 09075e82-0dd4-0310-85a5-a0d7c8717e4f
2008-06-30ringbuf: get_{write,read}_vector returns total bytes in both vec eltsEric Wong1-2/+5
This will eliminate unnecessary calls to ringbuf_{read,write}_space git-svn-id: https://svn.musicpd.org/mpd/trunk@7389 09075e82-0dd4-0310-85a5-a0d7c8717e4f
2008-06-30Add a generic ring buffer implementationEric Wong1-0/+205
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