From 2eaf1be5c1702498d8b857eaa77e695fffc60834 Mon Sep 17 00:00:00 2001
From: jblum
Date: Wed, 8 Oct 2008 00:14:46 +0000
Subject: probe threads: set daemon
git-svn-id: http://gnuradio.org/svn/gnuradio/trunk@9739 221aa14e-8319-0410-a670-987f0aec2ac5
---
grc/data/platforms/python/blocks/gr_probe_avg_mag_sqrd_x.xml | 4 +++-
grc/data/platforms/python/blocks/gr_probe_density_b.xml | 4 +++-
grc/data/platforms/python/blocks/gr_probe_mpsk_snr_c.xml | 4 +++-
grc/data/platforms/python/blocks/gr_probe_signal_f.xml | 4 +++-
4 files changed, 12 insertions(+), 4 deletions(-)
(limited to 'grc/data/platforms')
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()
+_$(id)_thread = threading.Thread(target=_$(id)_run)
+_$(id)_thread.setDaemon(True)
+_$(id)_thread.start()
set_alpha($alpha)
set_threshold($threshold)
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()
+_$(id)_thread = threading.Thread(target=_$(id)_run)
+_$(id)_thread.setDaemon(True)
+_$(id)_thread.start()
set_alpha($alpha)
Alpha
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()
+_$(id)_thread = threading.Thread(target=_$(id)_run)
+_$(id)_thread.setDaemon(True)
+_$(id)_thread.start()
set_alpha($alpha)
Alpha
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()
+_$(id)_thread = threading.Thread(target=_$(id)_run)
+_$(id)_thread.setDaemon(True)
+_$(id)_thread.start()
Update Interval (s)
update_interval
--
cgit