diff options
author | Balint Seeber <balint@ettus.com> | 2014-11-18 16:09:26 -0800 |
---|---|---|
committer | Martin Braun <martin.braun@ettus.com> | 2014-11-19 17:21:57 +0100 |
commit | 056b4a5ff064d88adb527d1b9206205766b96e22 (patch) | |
tree | b4966231c0b518747ae72081b4b3df1e874569df /tools | |
parent | 3add8cf527c4a293f0161e67ad141e2e9d454199 (diff) | |
download | uhd-056b4a5ff064d88adb527d1b9206205766b96e22.tar.gz uhd-056b4a5ff064d88adb527d1b9206205766b96e22.tar.bz2 uhd-056b4a5ff064d88adb527d1b9206205766b96e22.zip |
ks: abort fix
Diffstat (limited to 'tools')
-rw-r--r-- | tools/kitchen_sink/kitchen_sink.cpp | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/tools/kitchen_sink/kitchen_sink.cpp b/tools/kitchen_sink/kitchen_sink.cpp index 62bf89375..6337be23f 100644 --- a/tools/kitchen_sink/kitchen_sink.cpp +++ b/tools/kitchen_sink/kitchen_sink.cpp @@ -1752,11 +1752,11 @@ int UHD_SAFE_MAIN(int argc, char *argv[]){ else std::cout << HEADER "Waiting for Q..." << std::endl; - while (stop_signal_called == false) + do { // FIXME: Stop time - if (kbhit(interactive_sleep)) + if (kbhit(0)) { char c = fgetc(stdin); if (c == EOF) @@ -1786,7 +1786,9 @@ int UHD_SAFE_MAIN(int argc, char *argv[]){ } print_msgs(); - } + + abort_event.timed_wait(l_stop, boost::posix_time::milliseconds(interactive_sleep)); + } while (stop_signal_called == false); } else if (duration > 0) { |