From 44fb4c04d2ecda3f60fc4f7e31da64cce9ca7a6d Mon Sep 17 00:00:00 2001
From: Josh Blum
Date: Thu, 30 Aug 2012 03:37:11 -0700
Subject: use the separate block msgs/topology updates

---
 lib/top_block.cpp | 11 ++++++-----
 1 file changed, 6 insertions(+), 5 deletions(-)

(limited to 'lib/top_block.cpp')

diff --git a/lib/top_block.cpp b/lib/top_block.cpp
index 36ff723..9d7a2f0 100644
--- a/lib/top_block.cpp
+++ b/lib/top_block.cpp
@@ -47,22 +47,23 @@ void TopBlock::set_buffer_hint(const size_t hint)
     TopBlockMessage event;
     event.what = TopBlockMessage::HINT;
     event.hint = hint;
-    (*this)->executor.update(event);
+    (*this)->executor.post_msg(event);
 }
 
 void TopBlock::start(void)
 {
+    (*this)->executor.commit();
     TopBlockMessage event;
     event.what = TopBlockMessage::ACTIVE;
     event.token = (*this)->token;
-    (*this)->executor.update(event);
+    (*this)->executor.post_msg(event);
 }
 
 void TopBlock::stop(void)
 {
     TopBlockMessage event;
     event.what = TopBlockMessage::INERT;
-    (*this)->executor.update(event);
+    (*this)->executor.post_msg(event);
 }
 
 void TopBlock::run(void)
@@ -76,7 +77,7 @@ void TopBlock::wait(void)
     while (not (*this)->token.unique())
     {
         boost::this_thread::yield();
-        sleep(1);
-        VAR((*this)->token.use_count());
+        //sleep(1);
+        //VAR((*this)->token.use_count());
     }
 }
-- 
cgit