From a2262b6bb70923d89e96ca0d597d96a8a01e4b67 Mon Sep 17 00:00:00 2001 From: Eric Blossom Date: Mon, 10 Jan 2011 23:05:18 -0800 Subject: qa_set_msg_handler: Use sleep instead of yield. Confirmed to fix problem on 32-bit CoreDuo. Probably fixes problem on Arm too. --- gnuradio-core/src/lib/runtime/qa_set_msg_handler.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'gnuradio-core/src/lib/runtime') 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(); -- cgit