comparison data/fft/FFTDataServer.h @ 216:7f8ffe65d453

* Fixes to FFT server lifecycle management
author Chris Cannam
date Mon, 22 Jan 2007 13:20:54 +0000
parents a051929fef3b
children a867be73b638
comparison
equal deleted inserted replaced
215:a051929fef3b 216:7f8ffe65d453
204 static ServerMap m_servers; 204 static ServerMap m_servers;
205 static ServerQueue m_releasedServers; // these are still in m_servers as well, with zero refcount 205 static ServerQueue m_releasedServers; // these are still in m_servers as well, with zero refcount
206 static QMutex m_serverMapMutex; 206 static QMutex m_serverMapMutex;
207 static FFTDataServer *findServer(QString); // call with serverMapMutex held 207 static FFTDataServer *findServer(QString); // call with serverMapMutex held
208 static void purgeLimbo(int maxSize = 3); // call with serverMapMutex held 208 static void purgeLimbo(int maxSize = 3); // call with serverMapMutex held
209
210 static void claimInstance(FFTDataServer *, bool needLock);
211 static void releaseInstance(FFTDataServer *, bool needLock);
212
209 }; 213 };
210 214
211 #endif 215 #endif