From 36f216977ff79a72b3c5498162659050bc7552ad Mon Sep 17 00:00:00 2001 From: Josh Blum Date: Wed, 29 Aug 2012 23:15:21 -0700 Subject: using port messages and implement buffer queues in house --- lib/top_block.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'lib/top_block.cpp') diff --git a/lib/top_block.cpp b/lib/top_block.cpp index f9dde36..6f98449 100644 --- a/lib/top_block.cpp +++ b/lib/top_block.cpp @@ -16,6 +16,7 @@ #include "element_impl.hpp" #include +#include //sleep using namespace gnuradio; @@ -30,7 +31,7 @@ TopBlock::TopBlock(const std::string &name): tsbe::ExecutorConfig config; config.topology = (*this)->topology; (*this)->executor = tsbe::Executor(config); - (*this)->token = make_token(); + (*this)->token = Token::make(); } void TopBlock::update(void) @@ -71,7 +72,6 @@ void TopBlock::wait(void) { while (not (*this)->token.unique()) { - sleep(1); - VAR((*this)->token.use_count()); + boost::this_thread::yield(); } } -- cgit