commit-gnuradio
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Commit-gnuradio] r9261 - gnuradio/branches/developers/trondeau/dbs/usrp


From: trondeau
Subject: [Commit-gnuradio] r9261 - gnuradio/branches/developers/trondeau/dbs/usrp/host/lib/legacy
Date: Tue, 12 Aug 2008 16:26:54 -0600 (MDT)

Author: trondeau
Date: 2008-08-12 16:26:54 -0600 (Tue, 12 Aug 2008)
New Revision: 9261

Modified:
   gnuradio/branches/developers/trondeau/dbs/usrp/host/lib/legacy/usrp_basic.cc
Log:
fixed daughterboard destruction problem in C++; need to look into Python 
holding references still. Code is running.

Modified: 
gnuradio/branches/developers/trondeau/dbs/usrp/host/lib/legacy/usrp_basic.cc
===================================================================
--- 
gnuradio/branches/developers/trondeau/dbs/usrp/host/lib/legacy/usrp_basic.cc    
    2008-08-12 22:02:48 UTC (rev 9260)
+++ 
gnuradio/branches/developers/trondeau/dbs/usrp/host/lib/legacy/usrp_basic.cc    
    2008-08-12 22:26:54 UTC (rev 9261)
@@ -231,6 +231,7 @@
 
 usrp_basic::~usrp_basic ()
 {
+  d_db.resize(0);  // kill refs to daughterboards before closing USB
   if (d_udh)
     usb_close (d_udh);
 }
@@ -248,6 +249,7 @@
   if(which > 3) {
     throw std::invalid_argument("usrp_standard_commond::db which must be 0, 1, 
2, or 3");
   }
+  // FIXME: return weak pointers
   return d_db[which];
 }
 





reply via email to

[Prev in Thread] Current Thread [Next in Thread]