diff base/Thread.h @ 408:115f60df1e4d

* Speed up spectrogram painting by releasing mutex in FFTDataServer while calculating data prior to writing it, and by adding whole-column value query methods to FFT objects * Add paint cache to Thumbwheel -- repaints of this widget were slowing down the whole spectrogram repaint * More uses of MutexLocker (named and with debug) and more profile points * Make startup much quicker some of the time, with OSC server in place
author Chris Cannam
date Thu, 08 May 2008 14:46:22 +0000
parents 183ee2a55fc7
children c01cbe41aeb5
line wrap: on
line diff
--- a/base/Thread.h	Tue Apr 29 15:34:17 2008 +0000
+++ b/base/Thread.h	Thu May 08 14:46:22 2008 +0000
@@ -19,6 +19,8 @@
 #include <QThread>
 #include <QMutexLocker>
 
+#include "Profiler.h"
+
 class Thread : public QThread
 {
 Q_OBJECT
@@ -38,7 +40,6 @@
     Type m_type;
 };
 
-
 class MutexLocker
 {
 public:
@@ -55,6 +56,7 @@
         const char *m_name;
     };
 
+    Profiler m_profiler;
     Printer m_printer;
     QMutexLocker m_locker;
 };