summaryrefslogtreecommitdiff
path: root/lib/top_block.cpp
diff options
context:
space:
mode:
authorJosh Blum2012-08-29 23:15:21 -0700
committerJosh Blum2012-08-29 23:15:21 -0700
commit36f216977ff79a72b3c5498162659050bc7552ad (patch)
tree78d13d782f86d895138aefa690b0f056093ece72 /lib/top_block.cpp
parent483a44a31f6e02ae0cadfc41710f052d9e48fc6c (diff)
downloadsandhi-36f216977ff79a72b3c5498162659050bc7552ad.tar.gz
sandhi-36f216977ff79a72b3c5498162659050bc7552ad.tar.bz2
sandhi-36f216977ff79a72b3c5498162659050bc7552ad.zip
using port messages and implement buffer queues in house
Diffstat (limited to 'lib/top_block.cpp')
-rw-r--r--lib/top_block.cpp6
1 files changed, 3 insertions, 3 deletions
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 <gnuradio/top_block.hpp>
+#include <boost/thread/thread.hpp> //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();
}
}