forked from sdr/gr-osmosdr
rtl: notify work function on exit of async read
this is required to handle the interruption of a flowgraph in a clean way by returning WORK_DONE in work() function.
This commit is contained in:
parent
241fc1922b
commit
10573261c2
|
@ -302,6 +302,8 @@ void rtl_source_c::rtlsdr_wait()
|
|||
|
||||
if ( ret != 0 )
|
||||
std::cerr << "rtlsdr_read_async returned with " << ret << std::endl;
|
||||
|
||||
_buf_cond.notify_one();
|
||||
}
|
||||
|
||||
int rtl_source_c::work( int noutput_items,
|
||||
|
|
Loading…
Reference in New Issue