diff options
author | Tom Rondeau <trondeau@vt.edu> | 2013-02-26 12:00:47 -0500 |
---|---|---|
committer | Tom Rondeau <trondeau@vt.edu> | 2013-02-26 12:00:47 -0500 |
commit | d8e73d63c0af6ba6810319d866cab07b332d0e42 (patch) | |
tree | 3d050079c4046dd904c87b8b55317d58d527b0ab /gr-analog/lib/noise_source_X_impl.h.t | |
parent | fa00fcc1dda7586024aebbf4caaf6347d3b56ef5 (diff) |
core: adding a mutex as a protected member of gr_block for use in protecting set and work function access to variables.
This is used in gr-analog's noise_source and gr-filter's fir_filter_XXX since these two cause particular problems (in next's channel model). This shows the use of the mutex for general protection when needed.
Diffstat (limited to 'gr-analog/lib/noise_source_X_impl.h.t')
-rw-r--r-- | gr-analog/lib/noise_source_X_impl.h.t | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gr-analog/lib/noise_source_X_impl.h.t b/gr-analog/lib/noise_source_X_impl.h.t index 8bcc1dfde3..3a0e8d6d7c 100644 --- a/gr-analog/lib/noise_source_X_impl.h.t +++ b/gr-analog/lib/noise_source_X_impl.h.t @@ -41,8 +41,8 @@ namespace gr { @IMPL_NAME@(noise_type_t type, float ampl, long seed = 0); ~@IMPL_NAME@(); - void set_type(noise_type_t type) { d_type = type; } - void set_amplitude(float ampl) { d_ampl = ampl; } + void set_type(noise_type_t type); + void set_amplitude(float ampl); noise_type_t type() const { return d_type; } float amplitude() const { return d_ampl; } |