[PATCH] Wait in the destructor for all I/O to finish without a timeout

This is merely a historical archive of years 2008-2021, before the migration to mailman3.

A maintained and still updated list archive can be found at https://lists.osmocom.org/hyperkitty/list/osmocom-sdr@lists.osmocom.org/.

Peter Stuge peter at stuge.se
Tue Aug 7 14:42:33 UTC 2012


Signed-off-by: Peter Stuge <peter at stuge.se>
---
 lib/rtl/rtl_source_c.cc |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/lib/rtl/rtl_source_c.cc b/lib/rtl/rtl_source_c.cc
index 8839a2f..c8cc772 100644
--- a/lib/rtl/rtl_source_c.cc
+++ b/lib/rtl/rtl_source_c.cc
@@ -180,7 +180,7 @@ rtl_source_c::~rtl_source_c ()
   if (_dev) {
     _running = false;
     rtlsdr_cancel_async( _dev );
-    _thread.timed_join( boost::posix_time::milliseconds(200) );
+    _thread.join();
     rtlsdr_close( _dev );
     _dev = NULL;
   }
-- 
1.7.4.1.343.ga91df.dirty


--YZ5djTAD1cGYuMQK--




More information about the osmocom-sdr mailing list