Mercurial > hg > svcore
diff data/fft/FFTFileCacheReader.cpp @ 1081:027d8b943be5
Do not attempt to switch from read-only to read-write mode if an error is pending (may cause mutex deadlock)
author | Chris Cannam |
---|---|
date | Wed, 10 Jun 2015 13:12:29 +0100 |
parents | cc27f35aa75c |
children | 9f4505ac9072 |
line wrap: on
line diff
--- a/data/fft/FFTFileCacheReader.cpp Wed Jun 10 13:12:06 2015 +0100 +++ b/data/fft/FFTFileCacheReader.cpp Wed Jun 10 13:12:29 2015 +0100 @@ -24,6 +24,8 @@ #include <iostream> +//#define DEBUG_FFT_FILE_CACHE_READER 1 + // The underlying matrix has height (m_height * 2 + 1). In each // column we store magnitude at [0], [2] etc and phase at [1], [3] @@ -44,7 +46,9 @@ writer->getWidth(), writer->getHeight() * 2 + m_factorSize)) { -// cerr << "FFTFileCacheReader: storage type is " << (storageType == FFTCache::Compact ? "Compact" : storageType == Polar ? "Polar" : "Rectangular") << endl; +#ifdef DEBUG_FFT_FILE_CACHE_READER + cerr << "FFTFileCacheReader: storage type is " << (m_storageType == FFTCache::Compact ? "Compact" : m_storageType == FFTCache::Polar ? "Polar" : "Rectangular") << endl; +#endif } FFTFileCacheReader::~FFTFileCacheReader()