diff options
author | Josh Blum | 2012-08-30 20:22:44 -0700 |
---|---|---|
committer | Josh Blum | 2012-08-30 20:22:44 -0700 |
commit | a648f0970230203f05a434dba903e6a4a5a08d53 (patch) | |
tree | 9e48ccac26a85dec161f2d8806bf5c1cf650e016 /lib/top_block.cpp | |
parent | 44fb4c04d2ecda3f60fc4f7e31da64cce9ca7a6d (diff) | |
download | sandhi-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.cpp | 20 |
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) |