diff options
author | Josh Blum | 2013-04-10 02:57:11 -0500 |
---|---|---|
committer | Josh Blum | 2013-04-10 02:57:57 -0500 |
commit | 50f8123fc082ff9b1666277175e6f79f666404e5 (patch) | |
tree | 54ddb4d742c2f03fb083e5353db02767b4828c29 /lib/top_block.cpp | |
parent | fb55fd6737902ed6270c2518bdc81a6971f9b3a1 (diff) | |
download | sandhi-50f8123fc082ff9b1666277175e6f79f666404e5.tar.gz sandhi-50f8123fc082ff9b1666277175e6f79f666404e5.tar.bz2 sandhi-50f8123fc082ff9b1666277175e6f79f666404e5.zip |
gras: switched to using token for prio messages
See #70 for more details
Diffstat (limited to 'lib/top_block.cpp')
-rw-r--r-- | lib/top_block.cpp | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/lib/top_block.cpp b/lib/top_block.cpp index 5370920..9a402f4 100644 --- a/lib/top_block.cpp +++ b/lib/top_block.cpp @@ -37,8 +37,7 @@ TopBlock::~TopBlock(void) void ElementImpl::top_block_cleanup(void) { - this->pre_post_all_set_prio(); - this->executor->post_all(TopInertMessage()); + this->bcast_prio_msg(TopInertMessage()); this->topology->clear_all(); this->executor->commit(); if (ARMAGEDDON) std::cerr @@ -93,8 +92,7 @@ void TopBlock::stop(void) (*this)->thread_group->interrupt_all(); //message all blocks to mark done - (*this)->pre_post_all_set_prio(); - (*this)->executor->post_all(TopInertMessage()); + (*this)->bcast_prio_msg(TopInertMessage()); } void TopBlock::run(void) |