From d7ba69ca274b59365d06ad162670bddd2a3faae6 Mon Sep 17 00:00:00 2001 From: Johannes Schickel Date: Sun, 11 Mar 2012 00:53:23 +0100 Subject: COMMON: Mention that SafeSeekableSubReadStream is not threading safe. --- common/substream.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/common/substream.h b/common/substream.h index 1ad588a43d..01686529aa 100644 --- a/common/substream.h +++ b/common/substream.h @@ -103,6 +103,9 @@ public: * at the same time; they won't mess up each other. They will, however, * reposition the parent stream, so don't depend on its position to be * the same after a read() or seek() on one of its SafeSeekableSubReadStream. + * + * Note that this stream is *not* threading safe. Calling read from the audio + * thread and from the main thread might mess up the data retrieved. */ class SafeSeekableSubReadStream : public SeekableSubReadStream { public: -- cgit v1.2.3