summaryrefslogtreecommitdiff
path: root/grc/data/platforms
diff options
context:
space:
mode:
authorjblum2008-10-08 00:14:46 +0000
committerjblum2008-10-08 00:14:46 +0000
commit2eaf1be5c1702498d8b857eaa77e695fffc60834 (patch)
tree73ae86cdf29615319d06be6a17201f7d6420384e /grc/data/platforms
parenta655ed5b528a407ad3aedb9a88f8b22700870e0c (diff)
downloadgnuradio-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')
-rw-r--r--grc/data/platforms/python/blocks/gr_probe_avg_mag_sqrd_x.xml4
-rw-r--r--grc/data/platforms/python/blocks/gr_probe_density_b.xml4
-rw-r--r--grc/data/platforms/python/blocks/gr_probe_mpsk_snr_c.xml4
-rw-r--r--grc/data/platforms/python/blocks/gr_probe_signal_f.xml4
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>