Mercurial > hg > svcore
comparison base/Thread.cpp @ 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 | 85bf384db35f |
children | e802e550a1f2 |
comparison
equal
deleted
inserted
replaced
407:88ad01799040 | 408:115f60df1e4d |
---|---|
56 | 56 |
57 #endif | 57 #endif |
58 } | 58 } |
59 | 59 |
60 MutexLocker::MutexLocker(QMutex *mutex, const char *name) : | 60 MutexLocker::MutexLocker(QMutex *mutex, const char *name) : |
61 m_profiler(name, false), | |
61 m_printer(name), | 62 m_printer(name), |
62 m_locker(mutex) | 63 m_locker(mutex) |
63 { | 64 { |
64 #ifdef DEBUG_MUTEX_LOCKER | 65 #ifdef DEBUG_MUTEX_LOCKER |
65 std::cerr << "... locked mutex " << mutex << std::endl; | 66 std::cerr << "... locked mutex " << mutex << std::endl; |
66 #endif | 67 #endif |
68 m_profiler.end(); | |
67 } | 69 } |
68 | 70 |
69 MutexLocker::~MutexLocker() | 71 MutexLocker::~MutexLocker() |
70 { | 72 { |
71 } | 73 } |