diff data/fft/FFTDataServer.cpp @ 159:e5879045d22b

* Pull memory cache out into its own file
author Chris Cannam
date Wed, 16 Aug 2006 14:59:09 +0000
parents c03ec31005e1
children 04baa690f90d
line wrap: on
line diff
--- a/data/fft/FFTDataServer.cpp	Wed Aug 16 14:57:22 2006 +0000
+++ b/data/fft/FFTDataServer.cpp	Wed Aug 16 14:59:09 2006 +0000
@@ -16,6 +16,7 @@
 #include "FFTDataServer.h"
 
 #include "FFTFileCache.h"
+#include "FFTMemoryCache.h"
 
 #include "model/DenseTimeValueModel.h"
 
@@ -487,6 +488,8 @@
                                        m_polar ? FFTFileCache::Polar :
                                                  FFTFileCache::Rectangular);
 
+//    FFTCache *cache = new FFTMemoryCache();
+
     size_t width = m_cacheWidth;
     if (c * m_cacheWidth + width > m_width) {
         width = m_width - c * m_cacheWidth;
@@ -744,6 +747,9 @@
                 m_server.m_writeMutex.lock();
                 m_server.m_condition.wait(&m_server.m_writeMutex, 10000);
                 m_server.m_writeMutex.unlock();
+#ifdef DEBUG_FFT_SERVER
+                std::cerr << "FFTDataServer(" << this << "): waited" << std::endl;
+#endif
                 if (m_server.m_exiting) return;
             }