Mercurial > hg > svcore
comparison data/model/Dense3DModelPeakCache.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 | 95391b480e17 |
children | 408e56d30f58 |
comparison
equal
deleted
inserted
replaced
547:806e3c72b5df | 548:1469caaa8e67 |
---|---|
77 if (m_coverage.size() > 0) { | 77 if (m_coverage.size() > 0) { |
78 // The last peak may have come from an incomplete read, which | 78 // The last peak may have come from an incomplete read, which |
79 // may since have been filled, so reset it | 79 // may since have been filled, so reset it |
80 m_coverage.reset(m_coverage.size()-1); | 80 m_coverage.reset(m_coverage.size()-1); |
81 } | 81 } |
82 if (getWidth() > m_coverage.size()) { | 82 m_coverage.resize(getWidth()); // retaining data |
83 m_coverage.resize(getWidth()); // clears all bits, which is OK with us | |
84 } | |
85 } | 83 } |
86 | 84 |
87 void | 85 void |
88 Dense3DModelPeakCache::sourceModelAboutToBeDeleted() | 86 Dense3DModelPeakCache::sourceModelAboutToBeDeleted() |
89 { | 87 { |