summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/gras/thread_pool.hpp11
1 files changed, 11 insertions, 0 deletions
diff --git a/include/gras/thread_pool.hpp b/include/gras/thread_pool.hpp
index e62da3a..2d25178 100644
--- a/include/gras/thread_pool.hpp
+++ b/include/gras/thread_pool.hpp
@@ -83,6 +83,17 @@ struct GRAS_API ThreadPool : boost::shared_ptr<Theron::Framework>
* thread pool that the block's work routine will run in.
*/
void set_active(void);
+
+ /*!
+ * Test that a particular thread priority setting is possible.
+ *
+ * Highly OS dependent! Some OS require special permissions,
+ * or security settings to use real time priority setting.
+ *
+ * \param thread_priority range -1.0f to 1.0f, 0.0f is "normal"
+ * \return true if the priority change is possible
+ */
+ static bool test_thread_priority(const float thread_priority);
};
} //namespace gras