From a648f0970230203f05a434dba903e6a4a5a08d53 Mon Sep 17 00:00:00 2001 From: Josh Blum Date: Thu, 30 Aug 2012 20:22:44 -0700 Subject: checking in small fixes and message work --- lib/top_block.cpp | 20 ++++++++++++++++---- 1 file changed, 16 insertions(+), 4 deletions(-) (limited to 'lib/top_block.cpp') 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) -- cgit