summaryrefslogtreecommitdiff
path: root/plugins/common/thread.h
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/common/thread.h')
-rw-r--r--plugins/common/thread.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/plugins/common/thread.h b/plugins/common/thread.h
index 8879b5b4..bf1fd485 100644
--- a/plugins/common/thread.h
+++ b/plugins/common/thread.h
@@ -126,6 +126,15 @@ public:
*/
virtual bool start();
+ /**
+ * Sets the priority of the thread for FIFO scheduling.
+ * @fn set_priority
+ * @param priority Integer ranging from 1 (lowest) to 99 (highest).
+ * @return True if the operation was successful.
+ * @public
+ */
+ bool setPriority(int priority);
+
/**
* Stops the thread
* @fn stop