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:
Dimitri Stolnikov 2013-01-16 20:30:37 +01:00
parent 241fc1922b
commit 10573261c2
1 changed files with 2 additions and 0 deletions

View File

@ -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,