From 44d9f62f34e0561d83ea32941f0ea1b529b1490d Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Sat, 16 Aug 2008 09:28:15 -0700 Subject: core rewrite (decode,player,outputBuffer,playlist) This is a huge refactoring of the core mpd process. The queueing/buffering mechanism is heavily reworked. The player.c code has been merged into outputBuffer (the actual ring buffering logic is handled by ringbuf.c); and decode.c actually handles decoding stuff. The end result is several hundreds of lines shorter, even though we still have a lot of DEBUG statements left in there for tracing and a lot of assertions, too. --- src/ringbuf.h | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'src/ringbuf.h') diff --git a/src/ringbuf.h b/src/ringbuf.h index d4baffdbd..43ba83a7c 100644 --- a/src/ringbuf.h +++ b/src/ringbuf.h @@ -175,7 +175,8 @@ void ringbuf_reset(struct ringbuf * rb); /** * Reset the write pointer to the read pointer, making an empty buffer. * - * This should only be called by the writer + * This should only be called by the writer and only very carefully + * (it is subject to race conditions with vectors or peek) * * @param rb a pointer to the ringbuffer structure. */ @@ -184,7 +185,8 @@ void ringbuf_writer_reset(struct ringbuf * rb); /** * Reset the read pointer to the write pointer, making an empty buffer. * - * This should only be called by the reader + * This should only be called by the writer and only very carefully + * (it is subject to race conditions with vectors or peek) * * @param rb a pointer to the ringbuffer structure. */ -- cgit v1.2.3