diff options
Diffstat (limited to 'include/gras/block.hpp')
-rw-r--r-- | include/gras/block.hpp | 8 |
1 files changed, 8 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. |