summaryrefslogtreecommitdiff
path: root/lib/top_block.cpp
diff options
context:
space:
mode:
authorJosh Blum2012-08-26 14:22:37 -0700
committerJosh Blum2012-08-26 16:03:52 -0700
commit305a0deac83d32561e8f62df0e88dbcb20b6cb90 (patch)
treed68227b7d901c6d2b720394b5fbe38700d3eae9c /lib/top_block.cpp
parent1e81e1cb8233aebcad60a2249d431701099c61fb (diff)
downloadsandhi-305a0deac83d32561e8f62df0e88dbcb20b6cb90.tar.gz
sandhi-305a0deac83d32561e8f62df0e88dbcb20b6cb90.tar.bz2
sandhi-305a0deac83d32561e8f62df0e88dbcb20b6cb90.zip
runtime: move task into its own file
Diffstat (limited to 'lib/top_block.cpp')
-rw-r--r--lib/top_block.cpp16
1 files changed, 8 insertions, 8 deletions
diff --git a/lib/top_block.cpp b/lib/top_block.cpp
index 0fade0d..0ae4ce9 100644
--- a/lib/top_block.cpp
+++ b/lib/top_block.cpp
@@ -34,30 +34,30 @@ TopBlock::TopBlock(const std::string &name):
void TopBlock::update(void)
{
- TopBlockUpdateEvent event;
- event.state = TopBlockUpdateEvent::UPDATE;
+ TopBlockMessage event;
+ event.what = TopBlockMessage::UPDATE;
(*this)->executor.update(event);
}
void TopBlock::set_buffer_hint(const size_t hint)
{
- TopBlockUpdateEvent event;
- event.state = TopBlockUpdateEvent::HINT;
+ TopBlockMessage event;
+ event.what = TopBlockMessage::HINT;
event.hint = hint;
(*this)->executor.update(event);
}
void TopBlock::start(void)
{
- TopBlockUpdateEvent event;
- event.state = TopBlockUpdateEvent::ACTIVE;
+ TopBlockMessage event;
+ event.what = TopBlockMessage::ACTIVE;
(*this)->executor.update(event);
}
void TopBlock::stop(void)
{
- TopBlockUpdateEvent event;
- event.state = TopBlockUpdateEvent::INERT;
+ TopBlockMessage event;
+ event.what = TopBlockMessage::INERT;
(*this)->executor.update(event);
}