diff options
-rw-r--r-- | include/gras/block.hpp | 7 | ||||
-rw-r--r-- | lib/block.cpp | 8 |
2 files changed, 0 insertions, 15 deletions
diff --git a/include/gras/block.hpp b/include/gras/block.hpp index cb38e95..1adc4c3 100644 --- a/include/gras/block.hpp +++ b/include/gras/block.hpp @@ -31,13 +31,6 @@ struct GRAS_API Block : Element * Deal with block configuration configuration ******************************************************************/ - /*! - * Set the thread pool of this block. - * Every block is created in the default active thread pool. - * This call will migrate the block to a new specified pool. - */ - void set_thread_pool(const ThreadPool &thread_pool); - //! Get the configuration rules of an input port const InputPortConfig &input_config(const size_t which_input) const; diff --git a/lib/block.cpp b/lib/block.cpp index 51b661f..aa130d7 100644 --- a/lib/block.cpp +++ b/lib/block.cpp @@ -184,11 +184,3 @@ void Block::notify_topology(const size_t, const size_t) { return; } - -void Block::set_thread_pool(const ThreadPool &thread_pool) -{ - boost::shared_ptr<BlockActor> old_actor = (*this)->block_actor; - (*this)->block_actor.reset(BlockActor::make(thread_pool)); - (*this)->setup_actor(); - wait_actor_idle((*this)->repr, *old_actor); -} |