diff options
author | Dimitri Stolnikov <horiz0n@gmx.net> | 2013-01-16 20:30:37 +0100 |
---|---|---|
committer | Dimitri Stolnikov <horiz0n@gmx.net> | 2013-01-16 20:30:37 +0100 |
commit | 10573261c21b307324fff1e107d401da592bd16c (patch) | |
tree | 359a0617283e5e1e6430fe3efb7b7bb969cf5210 /lib/rtl/rtl_source_c.cc | |
parent | 241fc1922b6b36905b0633a4db759d975d6ca910 (diff) |
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.
Diffstat (limited to 'lib/rtl/rtl_source_c.cc')
-rw-r--r-- | lib/rtl/rtl_source_c.cc | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/rtl/rtl_source_c.cc b/lib/rtl/rtl_source_c.cc index f6e7a94..302c993 100644 --- a/lib/rtl/rtl_source_c.cc +++ b/lib/rtl/rtl_source_c.cc @@ -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, |