diff options
author | jblum | 2008-10-08 00:14:46 +0000 |
---|---|---|
committer | jblum | 2008-10-08 00:14:46 +0000 |
commit | 2eaf1be5c1702498d8b857eaa77e695fffc60834 (patch) | |
tree | 73ae86cdf29615319d06be6a17201f7d6420384e /grc/data/platforms/python | |
parent | a655ed5b528a407ad3aedb9a88f8b22700870e0c (diff) | |
download | gnuradio-2eaf1be5c1702498d8b857eaa77e695fffc60834.tar.gz gnuradio-2eaf1be5c1702498d8b857eaa77e695fffc60834.tar.bz2 gnuradio-2eaf1be5c1702498d8b857eaa77e695fffc60834.zip |
probe threads: set daemon
git-svn-id: http://gnuradio.org/svn/gnuradio/trunk@9739 221aa14e-8319-0410-a670-987f0aec2ac5
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> |