Change usrp.selected_subdev() to return a weak reference to the
authorjcorgan <jcorgan@221aa14e-8319-0410-a670-987f0aec2ac5>
Tue, 15 Jan 2008 19:54:22 +0000 (19:54 +0000)
committerjcorgan <jcorgan@221aa14e-8319-0410-a670-987f0aec2ac5>
Tue, 15 Jan 2008 19:54:22 +0000 (19:54 +0000)
commit9949abfaf792fd860cb6d73775b53b655ca5417b
tree8ab28357b51792e1639e24998c6a2e43ed426f9b
parentc134910514da25ea27142022c90fe384395668e4
Change usrp.selected_subdev() to return a weak reference to the
daughterboard object.  This fixes the 'weakref exception' error on
shutdown that is sometimes seen.  What was happening is that user
code would hold a daughterboard reference, the USRP object would go
out of scope, and then when the daughterboard finally went out of scope,
it's destructor would try to invoke methods on (the now non-existent)
USRP.

git-svn-id: http://gnuradio.org/svn/gnuradio/trunk@7442 221aa14e-8319-0410-a670-987f0aec2ac5
gr-usrp/src/usrp.py