From 58a54c2cc19113d7644b80ec032b89fa1c38a54a Mon Sep 17 00:00:00 2001 From: Josh Blum Date: Wed, 5 Jun 2013 21:28:17 -0700 Subject: gras: separate actor data to struct to aid migration --- include/gras/block.hpp | 8 ++++++++ include/gras/block.i | 1 + 2 files changed, 9 insertions(+) (limited to 'include/gras') 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 #include +#include #include #include #include @@ -487,6 +488,13 @@ struct GRAS_API Block : Element * routines related to affinity and allocation ******************************************************************/ + /*! + * 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 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 %import %include +%include %include //////////////////////////////////////////////////////////////////////// -- cgit