comparison data/fft/FFTDataServer.cpp @ 259:dc46851837d6

* Fix many compile warnings, remove some debug output
author Chris Cannam
date Mon, 30 Apr 2007 13:36:23 +0000
parents d7eeffbb8aaf
children 260032c26c4f
comparison
equal deleted inserted replaced
258:96a6dd889c68 259:dc46851837d6
374 #ifdef DEBUG_FFT_SERVER 374 #ifdef DEBUG_FFT_SERVER
375 std::cerr << "FFTDataServer::purgeLimbo(" << maxSize << "): " 375 std::cerr << "FFTDataServer::purgeLimbo(" << maxSize << "): "
376 << m_releasedServers.size() << " candidates" << std::endl; 376 << m_releasedServers.size() << " candidates" << std::endl;
377 #endif 377 #endif
378 378
379 while (m_releasedServers.size() > maxSize) { 379 while (int(m_releasedServers.size()) > maxSize) {
380 380
381 FFTDataServer *server = *m_releasedServers.begin(); 381 FFTDataServer *server = *m_releasedServers.begin();
382 382
383 bool found = false; 383 bool found = false;
384 384
564 564
565 recommendation = 565 recommendation =
566 StorageAdviser::recommend(criteria, minimumSize, maximumSize); 566 StorageAdviser::recommend(criteria, minimumSize, maximumSize);
567 } 567 }
568 568
569 std::cerr << "Recommendation was: " << recommendation << std::endl; 569 // std::cerr << "Recommendation was: " << recommendation << std::endl;
570 570
571 m_memoryCache = ((recommendation & StorageAdviser::UseMemory) || 571 m_memoryCache = ((recommendation & StorageAdviser::UseMemory) ||
572 (recommendation & StorageAdviser::PreferMemory)); 572 (recommendation & StorageAdviser::PreferMemory));
573 573
574 m_compactCache = (recommendation & StorageAdviser::ConserveSpace); 574 m_compactCache = (recommendation & StorageAdviser::ConserveSpace);
721 721
722 // std::cerr << "switch from " << m_lastUsedCache << " to " << c << std::endl; 722 // std::cerr << "switch from " << m_lastUsedCache << " to " << c << std::endl;
723 723
724 for (IntQueue::iterator i = m_dormantCaches.begin(); 724 for (IntQueue::iterator i = m_dormantCaches.begin();
725 i != m_dormantCaches.end(); ++i) { 725 i != m_dormantCaches.end(); ++i) {
726 if (*i == c) { 726 if (*i == int(c)) {
727 m_dormantCaches.erase(i); 727 m_dormantCaches.erase(i);
728 break; 728 break;
729 } 729 }
730 } 730 }
731 731