summaryrefslogtreecommitdiff
path: root/include/gras/block_config.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'include/gras/block_config.hpp')
-rw-r--r--include/gras/block_config.hpp9
1 files changed, 9 insertions, 0 deletions
diff --git a/include/gras/block_config.hpp b/include/gras/block_config.hpp
index c90731b..17ff182 100644
--- a/include/gras/block_config.hpp
+++ b/include/gras/block_config.hpp
@@ -4,6 +4,7 @@
#define INCLUDED_GRAS_BLOCK_CONFIG_HPP
#include <gras/gras.hpp>
+#include <gras/thread_pool.hpp>
#include <cstddef>
namespace gras
@@ -53,6 +54,14 @@ struct GRAS_API GlobalBlockConfig
* Default = false.
*/
bool interruptible_work;
+
+ /*!
+ * This member sets the thread pool for the block.
+ * The block's actor will migrate to the new pool.
+ *
+ * Default = null thread pool.
+ */
+ ThreadPool thread_pool;
};
//! Configuration parameters for an input port