diff options
author | Tom Rondeau | 2012-02-06 12:01:57 -0500 |
---|---|---|
committer | Tom Rondeau | 2012-02-06 12:01:57 -0500 |
commit | 9efac71df2d352878e86df54889973b5cf9164bf (patch) | |
tree | eb354bbcff5d8c30152b95ccfa854f2905993b66 /gnuradio-core/src/lib/general/gri_fft.h | |
parent | 4defc0e618b04ceb71091ab3e3df62ca3e4858d8 (diff) | |
download | gnuradio-9efac71df2d352878e86df54889973b5cf9164bf.tar.gz gnuradio-9efac71df2d352878e86df54889973b5cf9164bf.tar.bz2 gnuradio-9efac71df2d352878e86df54889973b5cf9164bf.zip |
core: add functions to set/get nthreads of gri FFT object.
Diffstat (limited to 'gnuradio-core/src/lib/general/gri_fft.h')
-rw-r--r-- | gnuradio-core/src/lib/general/gri_fft.h | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/gnuradio-core/src/lib/general/gri_fft.h b/gnuradio-core/src/lib/general/gri_fft.h index c09930db0..ed80badf1 100644 --- a/gnuradio-core/src/lib/general/gri_fft.h +++ b/gnuradio-core/src/lib/general/gri_fft.h @@ -70,6 +70,16 @@ public: int outbuf_length () const { return d_fft_size; } /*! + * Set the number of threads to use for caclulation. + */ + void set_nthreads(int n); + + /*! + * Get the number of threads being used by FFTW + */ + int nthreads() const { return d_nthreads; } + + /*! * compute FFT. The input comes from inbuf, the output is placed in outbuf. */ void execute (); @@ -102,6 +112,16 @@ public: int outbuf_length () const { return d_fft_size / 2 + 1; } /*! + * Set the number of threads to use for caclulation. + */ + void set_nthreads(int n); + + /*! + * Get the number of threads being used by FFTW + */ + int nthreads() const { return d_nthreads; } + + /*! * compute FFT. The input comes from inbuf, the output is placed in outbuf. */ void execute (); @@ -134,6 +154,16 @@ public: int outbuf_length () const { return d_fft_size; } /*! + * Set the number of threads to use for caclulation. + */ + void set_nthreads(int n); + + /*! + * Get the number of threads being used by FFTW + */ + int nthreads() const { return d_nthreads; } + + /*! * compute FFT. The input comes from inbuf, the output is placed in outbuf. */ void execute (); |