summaryrefslogtreecommitdiff
path: root/lib/top_block.cpp
diff options
context:
space:
mode:
authorJosh Blum2012-08-30 20:22:44 -0700
committerJosh Blum2012-08-30 20:22:44 -0700
commita648f0970230203f05a434dba903e6a4a5a08d53 (patch)
tree9e48ccac26a85dec161f2d8806bf5c1cf650e016 /lib/top_block.cpp
parent44fb4c04d2ecda3f60fc4f7e31da64cce9ca7a6d (diff)
downloadsandhi-a648f0970230203f05a434dba903e6a4a5a08d53.tar.gz
sandhi-a648f0970230203f05a434dba903e6a4a5a08d53.tar.bz2
sandhi-a648f0970230203f05a434dba903e6a4a5a08d53.zip
checking in small fixes and message work
Diffstat (limited to 'lib/top_block.cpp')
-rw-r--r--lib/top_block.cpp20
1 files changed, 16 insertions, 4 deletions
diff --git a/lib/top_block.cpp b/lib/top_block.cpp
index 9d7a2f0..cf450b5 100644
--- a/lib/top_block.cpp
+++ b/lib/top_block.cpp
@@ -53,10 +53,22 @@ void TopBlock::set_buffer_hint(const size_t hint)
void TopBlock::start(void)
{
(*this)->executor.commit();
- TopBlockMessage event;
- event.what = TopBlockMessage::ACTIVE;
- event.token = (*this)->token;
- (*this)->executor.post_msg(event);
+ {
+ TopBlockMessage event;
+ event.what = TopBlockMessage::TOKEN_TIME;
+ event.token = (*this)->token;
+ (*this)->executor.post_msg(event);
+ }
+ {
+ TopBlockMessage event;
+ event.what = TopBlockMessage::ALLOCATE;
+ (*this)->executor.post_msg(event);
+ }
+ {
+ TopBlockMessage event;
+ event.what = TopBlockMessage::ACTIVE;
+ (*this)->executor.post_msg(event);
+ }
}
void TopBlock::stop(void)