diff options
author | eb | 2008-09-03 17:00:14 +0000 |
---|---|---|
committer | eb | 2008-09-03 17:00:14 +0000 |
commit | d0e46c317c4c3ef73dba2fdd196006b4792bbd15 (patch) | |
tree | fbe9189bba009e205230173268279b806c39c30d /gnuradio-core/src/lib/general/gri_fft.h | |
parent | b0d95cf81d7bb691012a13932e6aa6d19648b929 (diff) | |
download | gnuradio-d0e46c317c4c3ef73dba2fdd196006b4792bbd15.tar.gz gnuradio-d0e46c317c4c3ef73dba2fdd196006b4792bbd15.tar.bz2 gnuradio-d0e46c317c4c3ef73dba2fdd196006b4792bbd15.zip |
export gri_fft planning mutex
git-svn-id: http://gnuradio.org/svn/gnuradio/trunk@9493 221aa14e-8319-0410-a670-987f0aec2ac5
Diffstat (limited to 'gnuradio-core/src/lib/general/gri_fft.h')
-rw-r--r-- | gnuradio-core/src/lib/general/gri_fft.h | 17 |
1 files changed, 15 insertions, 2 deletions
diff --git a/gnuradio-core/src/lib/general/gri_fft.h b/gnuradio-core/src/lib/general/gri_fft.h index 7bfdce0b9..720084eb6 100644 --- a/gnuradio-core/src/lib/general/gri_fft.h +++ b/gnuradio-core/src/lib/general/gri_fft.h @@ -1,6 +1,6 @@ /* -*- c++ -*- */ /* - * Copyright 2003 Free Software Foundation, Inc. + * Copyright 2003,2008 Free Software Foundation, Inc. * * This file is part of GNU Radio * @@ -27,12 +27,25 @@ */ #include <gr_complex.h> +#include <boost/thread.hpp> + +/*! + * \brief Export reference to planner mutex for those apps that + * want to use FFTW w/o using the gri_fftw* classes. + */ +class gri_fft_planner { +public: + typedef boost::mutex::scoped_lock scoped_lock; + /*! + * Return reference to planner mutex + */ + static boost::mutex &mutex(); +}; /*! * \brief FFT: complex in, complex out * \ingroup dft */ - class gri_fft_complex { int d_fft_size; gr_complex *d_inbuf; |