diff options
author | Josh Blum | 2013-05-11 14:19:51 -0700 |
---|---|---|
committer | Josh Blum | 2013-05-11 14:19:51 -0700 |
commit | 476e5e7f8c949251436646dfd155cdd4430c37f2 (patch) | |
tree | 80e997c6bba4b58d4f4b5add12e362af07afb2e4 /include/gras/thread_pool.hpp | |
parent | 121a609ed2cadd50e5e85093e2ac524bdd279d02 (diff) | |
download | sandhi-476e5e7f8c949251436646dfd155cdd4430c37f2.tar.gz sandhi-476e5e7f8c949251436646dfd155cdd4430c37f2.tar.bz2 sandhi-476e5e7f8c949251436646dfd155cdd4430c37f2.zip |
gras: added thread prio support hooks
Diffstat (limited to 'include/gras/thread_pool.hpp')
-rw-r--r-- | include/gras/thread_pool.hpp | 6 |
1 files changed, 6 insertions, 0 deletions
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; }; /*! |