# HG changeset patch # User Chris Cannam # Date 1224072482 0 # Node ID 8b2b497d302c893c4257dca39c5b1be913c4485e # Parent 4711b400f9760dc44bc8e9e4038e9edac5044f99 * Fix race condition in FFTFileCache when reading from the same FFT model from multiple threads (e.g. when applying more than one plugin at once) diff -r 4711b400f976 -r 8b2b497d302c layer/RegionLayer.cpp --- a/layer/RegionLayer.cpp Tue Oct 14 16:36:35 2008 +0000 +++ b/layer/RegionLayer.cpp Wed Oct 15 12:08:02 2008 +0000 @@ -501,8 +501,8 @@ getScaleExtents(v, min, max, logarithmic); - std::cerr << "RegionLayer[" << this << "]::getYForValue(" << val << "): min = " << min << ", max = " << max << ", log = " << logarithmic << std::endl; - std::cerr << "h = " << h << ", margin = " << margin << std::endl; +// std::cerr << "RegionLayer[" << this << "]::getYForValue(" << val << "): min = " << min << ", max = " << max << ", log = " << logarithmic << std::endl; +// std::cerr << "h = " << h << ", margin = " << margin << std::endl; if (logarithmic) { val = LogRange::map(val); @@ -511,7 +511,7 @@ h -= margin * 2; int y = margin + int(h - ((val - min) * h) / (max - min)) - 1; - std::cerr << "y = " << y << std::endl; +// std::cerr << "y = " << y << std::endl; return y; }