diff options
author | Josh Blum | 2013-09-09 00:01:07 -0700 |
---|---|---|
committer | Josh Blum | 2013-09-09 00:01:07 -0700 |
commit | f9c0d4c2e39aa28cc501ceb6479afc32f7849b11 (patch) | |
tree | 63a6677b3d4051c8a7776515ec733f6d475d1a15 /lib/top_block.cpp | |
parent | 7c4911c28c28305ed4d1aab9b5ea82f96b49f404 (diff) | |
download | sandhi-f9c0d4c2e39aa28cc501ceb6479afc32f7849b11.tar.gz sandhi-f9c0d4c2e39aa28cc501ceb6479afc32f7849b11.tar.bz2 sandhi-f9c0d4c2e39aa28cc501ceb6479afc32f7849b11.zip |
gras: work on global config that works on hier
Diffstat (limited to 'lib/top_block.cpp')
-rw-r--r-- | lib/top_block.cpp | 14 |
1 files changed, 2 insertions, 12 deletions
diff --git a/lib/top_block.cpp b/lib/top_block.cpp index 0c8572d..dd2fd5d 100644 --- a/lib/top_block.cpp +++ b/lib/top_block.cpp @@ -31,16 +31,6 @@ void ElementImpl::top_block_cleanup(void) this->executor->commit(); } -const GlobalBlockConfig &TopBlock::global_config(void) const -{ - return (*this)->top_config; -} - -GlobalBlockConfig &TopBlock::global_config(void) -{ - return (*this)->top_config; -} - void TopBlock::commit(void) { this->start(); //ok to re-start, means update @@ -62,7 +52,7 @@ void TopBlock::start(void) { //send the global block config before alloc TopConfigMessage message; - message.config = (*this)->top_config; + message.config = (*this)->global_config; (*this)->bcast_prio_msg(message); } { @@ -127,7 +117,7 @@ void TopBlock::wait(void) } //loop through blocks looking for non-done blocks with done inputs - BOOST_FOREACH(Apology::Worker *w, (*this)->executor->get_workers()) + BOOST_FOREACH(Apology::Worker *w, (*this)->topology->get_workers()) { BlockActor *actor = dynamic_cast<BlockActor *>(w->get_actor()); if (actor->data->block_state == BLOCK_STATE_DONE) has_a_done = true; |