Mercurial > hg > svcore
diff data/fft/FFTMemoryCache.cpp @ 548:1469caaa8e67
* Finer locking in fft caches; fix displayed bin ranges in spectrogram
author | Chris Cannam |
---|---|
date | Thu, 05 Feb 2009 12:05:28 +0000 |
parents | 3cc4b7cd2aa5 |
children | e802e550a1f2 |
line wrap: on
line diff
--- a/data/fft/FFTMemoryCache.cpp Wed Feb 04 20:39:11 2009 +0000 +++ b/data/fft/FFTMemoryCache.cpp Thu Feb 05 12:05:28 2009 +0000 @@ -148,9 +148,9 @@ } } - m_colsetMutex.lock(); + m_colsetLock.lockForWrite(); m_colset.set(x); - m_colsetMutex.unlock(); + m_colsetLock.unlock(); } void @@ -188,9 +188,9 @@ if (m_storageType == FFTCache::Rectangular) { m_factor[x] = max; - m_colsetMutex.lock(); + m_colsetLock.lockForWrite(); m_colset.set(x); - m_colsetMutex.unlock(); + m_colsetLock.unlock(); } else { setColumnAt(x, reals, imags, max); }