diff data/model/FFTModel.h @ 154:6ec58bb8f729

* Suspend/resume fft data server write activity while reading from a server to repaint the spectrogram display. Makes a significant improvement to the otherwise dreadful responsiveness of spectrogram display.
author Chris Cannam
date Thu, 03 Aug 2006 12:42:15 +0000
parents 21792a550ec9
children ae9be6b6b522
line wrap: on
line diff
--- a/data/model/FFTModel.h	Wed Aug 02 16:42:17 2006 +0000
+++ b/data/model/FFTModel.h	Thu Aug 03 12:42:15 2006 +0000
@@ -100,6 +100,9 @@
 
     virtual Model *clone() const;
 
+    virtual void suspend() { m_server->suspend(); }
+    virtual void resume() { m_server->resume(); }
+
 private:
     FFTModel(const FFTModel &);
     FFTModel &operator=(const FFTModel &); // not implemented