From 71803b9ae55e688476f24637713a89ab6bd2cf17 Mon Sep 17 00:00:00 2001 From: Tom Rondeau Date: Tue, 26 Mar 2013 13:27:53 -0400 Subject: affinity: fixes a problem with using gr types (for uint8 vectors) in setting processor affinity. --- gnuradio-core/src/examples/mp-sched/affinity_set.py | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) (limited to 'gnuradio-core/src/examples') diff --git a/gnuradio-core/src/examples/mp-sched/affinity_set.py b/gnuradio-core/src/examples/mp-sched/affinity_set.py index 6db632e0f..d73d4fc42 100755 --- a/gnuradio-core/src/examples/mp-sched/affinity_set.py +++ b/gnuradio-core/src/examples/mp-sched/affinity_set.py @@ -42,9 +42,6 @@ class affinity_set(gr.top_block): self.connect((self.gr_filt_0, 0), (self.gr_filt_1, 0)) self.connect((self.gr_filt_1, 0), (self.gr_null_sink_0, 0)) - - # QT sink close method reimplementation - def get_samp_rate(self): return self.samp_rate @@ -58,16 +55,16 @@ if __name__ == '__main__': tb.start() while(1): - ret = raw_input('Press Enter to quit: ') + ret = raw_input('Enter a new Core # or Press Enter to quit: ') if(len(ret) == 0): tb.stop() sys.exit(0) elif(ret.lower() == "none"): - tb.gr_filt_0.unset_processor_affinity() + tb.filter_filt_0.unset_processor_affinity() else: try: n = int(ret) except ValueError: print "Invalid number" else: - tb.gr_filt_0.set_processor_affinity([n,]) + tb.filter_filt_0.set_processor_affinity([n,]) -- cgit