From ecc7cd7f1f7b2e446c87e21d2023f197e8ed41e2 Mon Sep 17 00:00:00 2001 From: eb Date: Wed, 25 Mar 2009 19:13:58 +0000 Subject: missing lock git-svn-id: http://gnuradio.org/svn/gnuradio/trunk@10681 221aa14e-8319-0410-a670-987f0aec2ac5 --- gnuradio-core/src/lib/general/gri_fft.cc | 3 +++ 1 file changed, 3 insertions(+) (limited to 'gnuradio-core/src/lib/general') diff --git a/gnuradio-core/src/lib/general/gri_fft.cc b/gnuradio-core/src/lib/general/gri_fft.cc index b7245a389..e535f28c7 100644 --- a/gnuradio-core/src/lib/general/gri_fft.cc +++ b/gnuradio-core/src/lib/general/gri_fft.cc @@ -194,6 +194,9 @@ gri_fft_real_fwd::execute () gri_fft_real_rev::gri_fft_real_rev (int fft_size) { + // Hold global mutex during plan construction and destruction. + gri_fft_planner::scoped_lock lock(gri_fft_planner::mutex()); + assert (sizeof (fftwf_complex) == sizeof (gr_complex)); if (fft_size <= 0) -- cgit