diff options
author | Tom Rondeau <trondeau@vt.edu> | 2013-02-07 11:05:08 -0500 |
---|---|---|
committer | Tom Rondeau <trondeau@vt.edu> | 2013-02-07 11:05:08 -0500 |
commit | e532342c4b67b10f180f4da5b5ab6c89ea3179f0 (patch) | |
tree | a6d7aa94f62b6a51b2f15fa1942e2d349dfd9807 /gnuradio-core/src/examples/mp-sched/affinity_set.py | |
parent | e05c3cd81e2b3e60a6d09ebd1afbb641c33c8ea9 (diff) |
core: thread affinity example core set changed.
The affinity call will work if at least 1 of the specified cores is present. This fixes a problem if running on a single-core machine.
Diffstat (limited to 'gnuradio-core/src/examples/mp-sched/affinity_set.py')
-rwxr-xr-x | gnuradio-core/src/examples/mp-sched/affinity_set.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gnuradio-core/src/examples/mp-sched/affinity_set.py b/gnuradio-core/src/examples/mp-sched/affinity_set.py index b34477d14f..6db632e0fa 100755 --- a/gnuradio-core/src/examples/mp-sched/affinity_set.py +++ b/gnuradio-core/src/examples/mp-sched/affinity_set.py @@ -32,7 +32,7 @@ class affinity_set(gr.top_block): self.gr_filt_1 = gr.fir_filter_ccc(1, 40000*[0.2+0.3j,]) self.gr_filt_0.set_processor_affinity([0,]) - self.gr_filt_1.set_processor_affinity([1,2]) + self.gr_filt_1.set_processor_affinity([0,1]) ################################################## # Connections |