comparison data/fft/FFTDataServer.cpp @ 168:04baa690f90d

* Start adding StorageAdviser class to determine whether caches should be on disc or in memory
author Chris Cannam
date Mon, 25 Sep 2006 13:44:05 +0000
parents e5879045d22b
children b23eea68357e
comparison
equal deleted inserted replaced
167:665342c6ec57 168:04baa690f90d
20 20
21 #include "model/DenseTimeValueModel.h" 21 #include "model/DenseTimeValueModel.h"
22 22
23 #include "system/System.h" 23 #include "system/System.h"
24 24
25 #include "base/StorageAdviser.h"
26
27
25 #define DEBUG_FFT_SERVER 1 28 #define DEBUG_FFT_SERVER 1
26 //#define DEBUG_FFT_SERVER_FILL 1 29 //#define DEBUG_FFT_SERVER_FILL 1
27 30
28 #ifdef DEBUG_FFT_SERVER_FILL 31 #ifdef DEBUG_FFT_SERVER_FILL
29 #ifndef DEBUG_FFT_SERVER 32 #ifndef DEBUG_FFT_SERVER
69 !polar); 72 !polar);
70 73
71 if ((server = findServer(npn))) { 74 if ((server = findServer(npn))) {
72 return server; 75 return server;
73 } 76 }
77
78
79 //!!!
80
81 StorageAdviser::Recommendation recommendation =
82 StorageAdviser::recommend(StorageAdviser::Criteria(0), 0, 0);
83
74 84
75 m_servers[n] = ServerCountPair 85 m_servers[n] = ServerCountPair
76 (new FFTDataServer(n, 86 (new FFTDataServer(n,
77 model, 87 model,
78 channel, 88 channel,