diff data/fft/FFTDataServer.cpp @ 155:ae9be6b6b522

* Add Thumbwheel widget for all our zooming needs * Use QSettings to save/restore window size and position -- precursor to switching our preferences to QSettings as well -- wish I'd noticed it sooner * Only suspend writes (not reads from the underlying cache objects) from the fft caches when repainting the spectrogram -- performance should now be significantly better
author Chris Cannam
date Thu, 03 Aug 2006 15:40:11 +0000
parents 6ec58bb8f729
children c03ec31005e1
line wrap: on
line diff
--- a/data/fft/FFTDataServer.cpp	Thu Aug 03 12:42:15 2006 +0000
+++ b/data/fft/FFTDataServer.cpp	Thu Aug 03 15:40:11 2006 +0000
@@ -369,6 +369,7 @@
     std::cerr << "FFTDataServer(" << this << ")::~FFTDataServer()" << std::endl;
 #endif
 
+    m_suspended = false;
     m_exiting = true;
     m_condition.wakeAll();
     if (m_fillThread) {
@@ -411,6 +412,15 @@
 }
 
 void
+FFTDataServer::suspendWrites()
+{
+#ifdef DEBUG_FFT_SERVER
+    std::cerr << "FFTDataServer(" << this << "): suspendWrites" << std::endl;
+#endif
+    m_suspended = true;
+}
+
+void
 FFTDataServer::resume()
 {
 #ifdef DEBUG_FFT_SERVER