comparison data/fft/FFTDataServer.cpp @ 509:6066bde1c126

* Cut back on the locking and general workload in FFTDataServer::getMagnitudes(). This stuff is far too complicated!
author Chris Cannam
date Mon, 08 Dec 2008 11:15:13 +0000
parents bd7c46636bd0
children 59dd6d1bcfb0
comparison
equal deleted inserted replaced
508:1b8c748fd7ea 509:6066bde1c126
914 MutexLocker locker(&m_writeMutex, 914 MutexLocker locker(&m_writeMutex,
915 "FFTDataServer::getMagnitudesAt: m_writeMutex"); 915 "FFTDataServer::getMagnitudesAt: m_writeMutex");
916 fillColumn(x, true); 916 fillColumn(x, true);
917 } 917 }
918 918
919 for (size_t i = 0; i < count; ++i) { 919 cache->getMagnitudesAt(col, values, minbin, count, step);
920 values[i] = cache->getMagnitudeAt(col, i * step + minbin); 920
921 }
922 return true; 921 return true;
923 } 922 }
924 923
925 float 924 float
926 FFTDataServer::getNormalizedMagnitudeAt(size_t x, size_t y) 925 FFTDataServer::getNormalizedMagnitudeAt(size_t x, size_t y)