From 476e5e7f8c949251436646dfd155cdd4430c37f2 Mon Sep 17 00:00:00 2001 From: Josh Blum Date: Sat, 11 May 2013 14:19:51 -0700 Subject: gras: added thread prio support hooks --- include/gras/thread_pool.hpp | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'include') diff --git a/include/gras/thread_pool.hpp b/include/gras/thread_pool.hpp index abb4d99..e62da3a 100644 --- a/include/gras/thread_pool.hpp +++ b/include/gras/thread_pool.hpp @@ -54,6 +54,12 @@ struct GRAS_API ThreadPoolConfig * Default is BLOCKING. */ std::string yield_strategy; + + /*! + * Relative scheduling priority of the worker threads (range -1.0f to 1.0f, 0.0f is "normal"). + * Default is 0.0f + */ + float thread_priority; }; /*! -- cgit