diff options
author | Johannes Schickel | 2012-03-11 00:53:23 +0100 |
---|---|---|
committer | Johannes Schickel | 2012-03-11 00:53:23 +0100 |
commit | d7ba69ca274b59365d06ad162670bddd2a3faae6 (patch) | |
tree | 9c063142ad68e08c6865fcf0008d814bb9cd34c6 | |
parent | 48efab4e5abd8954b7167074b46ff078f6e0d7f4 (diff) | |
download | scummvm-rg350-d7ba69ca274b59365d06ad162670bddd2a3faae6.tar.gz scummvm-rg350-d7ba69ca274b59365d06ad162670bddd2a3faae6.tar.bz2 scummvm-rg350-d7ba69ca274b59365d06ad162670bddd2a3faae6.zip |
COMMON: Mention that SafeSeekableSubReadStream is not threading safe.
-rw-r--r-- | common/substream.h | 3 |
1 files changed, 3 insertions, 0 deletions
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: |