* Timed waits -- avoid unfortunate worst cases

This commit is contained in:
Chris Cannam
2007-11-26 21:08:15 +00:00
parent 10ccd711cc
commit d58531e2ca
3 changed files with 23 additions and 9 deletions

View File

@@ -966,6 +966,8 @@ RubberBandStretcher::Impl::process(const float *const *input, size_t samples, bo
m_spaceAvailable.lock();
if (!allConsumed) {
m_spaceAvailable.wait(500);
} else {
m_spaceAvailable.unlock();
}
/*
} else {