summaryrefslogtreecommitdiff
path: root/gnuradio-core/src/lib/general/gri_fft.h
diff options
context:
space:
mode:
authorMarcus Leech2012-02-06 11:11:06 -0500
committerTom Rondeau2012-02-06 11:11:06 -0500
commit4defc0e618b04ceb71091ab3e3df62ca3e4858d8 (patch)
tree50450d3c6a86a6c66cf7ad771b975fdff64832bd /gnuradio-core/src/lib/general/gri_fft.h
parentf4dc476d9113017d36623a101b726ce1f1aa7db2 (diff)
downloadgnuradio-4defc0e618b04ceb71091ab3e3df62ca3e4858d8.tar.gz
gnuradio-4defc0e618b04ceb71091ab3e3df62ca3e4858d8.tar.bz2
gnuradio-4defc0e618b04ceb71091ab3e3df62ca3e4858d8.zip
core: enable use of fftw's threading capabilities.
Can set nthreads when creating an fftw class; defaults to 1, so there's no change in default behavior.
Diffstat (limited to 'gnuradio-core/src/lib/general/gri_fft.h')
-rw-r--r--gnuradio-core/src/lib/general/gri_fft.h9
1 files changed, 6 insertions, 3 deletions
diff --git a/gnuradio-core/src/lib/general/gri_fft.h b/gnuradio-core/src/lib/general/gri_fft.h
index 91a82fb55..c09930db0 100644
--- a/gnuradio-core/src/lib/general/gri_fft.h
+++ b/gnuradio-core/src/lib/general/gri_fft.h
@@ -49,12 +49,13 @@ public:
*/
class GR_CORE_API gri_fft_complex {
int d_fft_size;
+ int d_nthreads;
gr_complex *d_inbuf;
gr_complex *d_outbuf;
void *d_plan;
public:
- gri_fft_complex (int fft_size, bool forward = true);
+ gri_fft_complex (int fft_size, bool forward = true, int nthreads=1);
virtual ~gri_fft_complex ();
/*
@@ -80,12 +81,13 @@ public:
*/
class GR_CORE_API gri_fft_real_fwd {
int d_fft_size;
+ int d_nthreads;
float *d_inbuf;
gr_complex *d_outbuf;
void *d_plan;
public:
- gri_fft_real_fwd (int fft_size);
+ gri_fft_real_fwd (int fft_size, int nthreads=1);
virtual ~gri_fft_real_fwd ();
/*
@@ -111,12 +113,13 @@ public:
*/
class GR_CORE_API gri_fft_real_rev {
int d_fft_size;
+ int d_nthreads;
gr_complex *d_inbuf;
float *d_outbuf;
void *d_plan;
public:
- gri_fft_real_rev (int fft_size);
+ gri_fft_real_rev (int fft_size, int nthreads=1);
virtual ~gri_fft_real_rev ();
/*