summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJosh Blum2013-09-15 13:44:22 -0700
committerJosh Blum2013-09-15 13:44:22 -0700
commit75d2c6cc485714efe4b136ade34e78a7b0fb2744 (patch)
tree9ce9ac19ecc072e8b706122c0724ee371ff32ae8
parent1494e66b4b448132030c233ef75dd9210b90e9ef (diff)
downloadsandhi-75d2c6cc485714efe4b136ade34e78a7b0fb2744.tar.gz
sandhi-75d2c6cc485714efe4b136ade34e78a7b0fb2744.tar.bz2
sandhi-75d2c6cc485714efe4b136ade34e78a7b0fb2744.zip
gras: removed set_thread_pool, use the config
-rw-r--r--include/gras/block.hpp7
-rw-r--r--lib/block.cpp8
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);
-}