diff options
Diffstat (limited to 'grc/data/platforms/python')
4 files changed, 12 insertions, 4 deletions
diff --git a/grc/data/platforms/python/blocks/gr_probe_avg_mag_sqrd_x.xml b/grc/data/platforms/python/blocks/gr_probe_avg_mag_sqrd_x.xml index 310d97388..cbd8446cd 100644 --- a/grc/data/platforms/python/blocks/gr_probe_avg_mag_sqrd_x.xml +++ b/grc/data/platforms/python/blocks/gr_probe_avg_mag_sqrd_x.xml @@ -15,7 +15,9 @@ def _$(id)_run(): while True: time.sleep($update_interval) print "$(id) Level:", self.$(id).level() -threading.Thread(target=_$(id)_run).start()</make> +_$(id)_thread = threading.Thread(target=_$(id)_run) +_$(id)_thread.setDaemon(True) +_$(id)_thread.start()</make> <callback>set_alpha($alpha)</callback> <callback>set_threshold($threshold)</callback> <param> diff --git a/grc/data/platforms/python/blocks/gr_probe_density_b.xml b/grc/data/platforms/python/blocks/gr_probe_density_b.xml index 1c529da5f..4c5b9e2fa 100644 --- a/grc/data/platforms/python/blocks/gr_probe_density_b.xml +++ b/grc/data/platforms/python/blocks/gr_probe_density_b.xml @@ -15,7 +15,9 @@ def _$(id)_run(): while True: time.sleep($update_interval) print "$(id) Density:", self.$(id).density() -threading.Thread(target=_$(id)_run).start()</make> +_$(id)_thread = threading.Thread(target=_$(id)_run) +_$(id)_thread.setDaemon(True) +_$(id)_thread.start()</make> <callback>set_alpha($alpha)</callback> <param> <name>Alpha</name> diff --git a/grc/data/platforms/python/blocks/gr_probe_mpsk_snr_c.xml b/grc/data/platforms/python/blocks/gr_probe_mpsk_snr_c.xml index a4a9e00ae..ec80d092d 100644 --- a/grc/data/platforms/python/blocks/gr_probe_mpsk_snr_c.xml +++ b/grc/data/platforms/python/blocks/gr_probe_mpsk_snr_c.xml @@ -17,7 +17,9 @@ def _$(id)_run(): print "$(id) Signal Mean:", self.$(id).signal_mean() print "$(id) Noise Variance:", self.$(id).noise_variance() print "$(id) SNR:", self.$(id).snr() -threading.Thread(target=_$(id)_run).start()</make> +_$(id)_thread = threading.Thread(target=_$(id)_run) +_$(id)_thread.setDaemon(True) +_$(id)_thread.start()</make> <callback>set_alpha($alpha)</callback> <param> <name>Alpha</name> diff --git a/grc/data/platforms/python/blocks/gr_probe_signal_f.xml b/grc/data/platforms/python/blocks/gr_probe_signal_f.xml index 211d4f3a1..688887f47 100644 --- a/grc/data/platforms/python/blocks/gr_probe_signal_f.xml +++ b/grc/data/platforms/python/blocks/gr_probe_signal_f.xml @@ -15,7 +15,9 @@ def _$(id)_run(): while True: time.sleep($update_interval) print "$(id) Level:", self.$(id).level() -threading.Thread(target=_$(id)_run).start()</make> +_$(id)_thread = threading.Thread(target=_$(id)_run) +_$(id)_thread.setDaemon(True) +_$(id)_thread.start()</make> <param> <name>Update Interval (s)</name> <key>update_interval</key> |