diff options
author | Gerald Begumisa <ben_g@users.sourceforge.net> | 2007-12-20 10:28:56 +0000 |
---|---|---|
committer | Gerald Begumisa <ben_g@users.sourceforge.net> | 2007-12-20 10:28:56 +0000 |
commit | 81ff77bfac6ef4397289400c6fa6925142e59385 (patch) | |
tree | fe4f0e75b96065272ee7939789126da14cf097b8 /orkbasecxx | |
parent | 0e9d7cb80716bd22e0e5234af0a7d3ba4d5a3091 (diff) |
Added missing concurrency control to protect access to chunk queue
git-svn-id: https://oreka.svn.sourceforge.net/svnroot/oreka/trunk@517 09dcff7a-b715-0410-9601-b79a96267cd0
Diffstat (limited to 'orkbasecxx')
-rw-r--r-- | orkbasecxx/AudioTape.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/orkbasecxx/AudioTape.cpp b/orkbasecxx/AudioTape.cpp index 41abe5a..c182534 100644 --- a/orkbasecxx/AudioTape.cpp +++ b/orkbasecxx/AudioTape.cpp @@ -144,6 +144,7 @@ void AudioTape::Write() { AudioChunkRef chunkRef; { + MutexSentinel sentinel(m_mutex); if(m_chunkQueue.size() > 0) { chunkRef = m_chunkQueue.front(); |