diff options
author | Josh Blum | 2013-06-06 13:45:50 -0700 |
---|---|---|
committer | Josh Blum | 2013-06-06 13:45:50 -0700 |
commit | b7c8f27d47ca78d2b07e7a4cb53d1c8df6eb32d6 (patch) | |
tree | 6ce12ebd668d120823c652f8b09d055a149d70dc /include/gras | |
parent | 7889847eed1e8bc003b88b0d6ad4f7904873d2ac (diff) | |
parent | 7350e18b8d5090349390f54b76a0e251b66ce619 (diff) | |
download | sandhi-b7c8f27d47ca78d2b07e7a4cb53d1c8df6eb32d6.tar.gz sandhi-b7c8f27d47ca78d2b07e7a4cb53d1c8df6eb32d6.tar.bz2 sandhi-b7c8f27d47ca78d2b07e7a4cb53d1c8df6eb32d6.zip |
Merge branch 'actor_migration'
Diffstat (limited to 'include/gras')
-rw-r--r-- | include/gras/block.hpp | 8 | ||||
-rw-r--r-- | include/gras/block.i | 1 |
2 files changed, 9 insertions, 0 deletions
diff --git a/include/gras/block.hpp b/include/gras/block.hpp index 378358e..5a6e5e2 100644 --- a/include/gras/block.hpp +++ b/include/gras/block.hpp @@ -5,6 +5,7 @@ #include <gras/element.hpp> #include <gras/sbuffer.hpp> +#include <gras/thread_pool.hpp> #include <gras/tag_iter.hpp> #include <gras/tags.hpp> #include <gras/work_buffer.hpp> @@ -488,6 +489,13 @@ struct GRAS_API Block : Element ******************************************************************/ /*! + * 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); + + /*! * Set if the work call should be interruptible by stop(). * Some work implementations block with the expectation of * getting a boost thread interrupt in a blocking call. diff --git a/include/gras/block.i b/include/gras/block.i index cce0d15..5c62f7e 100644 --- a/include/gras/block.i +++ b/include/gras/block.i @@ -12,6 +12,7 @@ %include <gras/tag_iter.i> %import <gras/sbuffer.i> %include <gras/buffer_queue.hpp> +%include <gras/thread_pool.hpp> %include <gras/block.hpp> //////////////////////////////////////////////////////////////////////// |