diff options
author | Eric Blossom | 2011-01-10 23:05:18 -0800 |
---|---|---|
committer | Eric Blossom | 2011-01-10 23:05:18 -0800 |
commit | a2262b6bb70923d89e96ca0d597d96a8a01e4b67 (patch) | |
tree | ec9711468cfe2a994b373b218218b394daf6f714 /gnuradio-core/src/lib/runtime | |
parent | bb438e7d12c5767123f8abed5810f284a5f18bf8 (diff) | |
download | gnuradio-a2262b6bb70923d89e96ca0d597d96a8a01e4b67.tar.gz gnuradio-a2262b6bb70923d89e96ca0d597d96a8a01e4b67.tar.bz2 gnuradio-a2262b6bb70923d89e96ca0d597d96a8a01e4b67.zip |
qa_set_msg_handler: Use sleep instead of yield.
Confirmed to fix problem on 32-bit CoreDuo. Probably fixes problem on Arm too.
Diffstat (limited to 'gnuradio-core/src/lib/runtime')
-rw-r--r-- | gnuradio-core/src/lib/runtime/qa_set_msg_handler.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gnuradio-core/src/lib/runtime/qa_set_msg_handler.cc b/gnuradio-core/src/lib/runtime/qa_set_msg_handler.cc index d52ca78b9..35ef5527e 100644 --- a/gnuradio-core/src/lib/runtime/qa_set_msg_handler.cc +++ b/gnuradio-core/src/lib/runtime/qa_set_msg_handler.cc @@ -74,8 +74,8 @@ void qa_set_msg_handler::t0() // core. send(src, mp(mp("example-msg"), mp(0))); - // Surrender our CPU for a bit - boost::this_thread::yield(); + // Give the messages a chance to be processed + boost::this_thread::sleep(boost::posix_time::milliseconds(100)); tb->stop(); tb->wait(); |