Mercurial > hg > qm-dsp
changeset 66:2af6edd98dfa
* minor
author | cannam |
---|---|
date | Wed, 13 May 2009 17:41:10 +0000 |
parents | d1d65fff5356 |
children | 516c86946900 |
files | dsp/transforms/FFT.cpp thread/Thread.h |
diffstat | 2 files changed, 9 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/dsp/transforms/FFT.cpp Wed May 13 10:45:54 2009 +0000 +++ b/dsp/transforms/FFT.cpp Wed May 13 17:41:10 2009 +0000 @@ -90,7 +90,9 @@ const double *p_lpRealIn, const double *p_lpImagIn, double *p_lpRealOut, double *p_lpImagOut) { - if(!p_lpRealIn || !p_lpRealOut || !p_lpImagOut) return; + if (!p_lpRealIn || !p_lpRealOut || !p_lpImagOut) return; + +// std::cerr << "FFT::process(" << m_n << "," << p_bInverseTransform << ")" << std::endl; unsigned int NumBits; unsigned int i, j, k, n;
--- a/thread/Thread.h Wed May 13 10:45:54 2009 +0000 +++ b/thread/Thread.h Wed May 13 17:41:10 2009 +0000 @@ -186,8 +186,12 @@ virtual void run() { m_todo.lock(); while (!m_finishing) { - while (!m_inTask && !m_finishing) m_todo.wait(); - if (m_finishing) break; + while (!m_inTask && !m_finishing) { + m_todo.wait(); + } + if (m_finishing) { + break; + } if (m_inTask) { performTask(); m_inTask = false;