From 75d2c6cc485714efe4b136ade34e78a7b0fb2744 Mon Sep 17 00:00:00 2001 From: Josh Blum Date: Sun, 15 Sep 2013 13:44:22 -0700 Subject: gras: removed set_thread_pool, use the config --- include/gras/block.hpp | 7 ------- lib/block.cpp | 8 -------- 2 files changed, 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 old_actor = (*this)->block_actor; - (*this)->block_actor.reset(BlockActor::make(thread_pool)); - (*this)->setup_actor(); - wait_actor_idle((*this)->repr, *old_actor); -} -- cgit