diff options
Diffstat (limited to 'lib/top_block.cpp')
-rw-r--r-- | lib/top_block.cpp | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/lib/top_block.cpp b/lib/top_block.cpp index c93bda5..4973b59 100644 --- a/lib/top_block.cpp +++ b/lib/top_block.cpp @@ -53,6 +53,16 @@ void ElementImpl::top_block_cleanup(void) << std::flush; } +GlobalBlockConfig TopBlock::global_config(void) const +{ + return (*this)->top_config; +} + +void TopBlock::set_global_config(const GlobalBlockConfig &config) +{ + (*this)->top_config = config; +} + void TopBlock::commit(void) { this->start(); //ok to re-start, means update @@ -70,6 +80,10 @@ void TopBlock::start(void) (*this)->executor->post_all(message); } { + //send the global block config before alloc + (*this)->executor->post_all((*this)->top_config); + } + { (*this)->executor->post_all(TopAllocMessage()); } { |