Allow an option set_realtime_priority() to revert

This commit is contained in:
Robbert van der Helm
2021-01-11 14:04:54 +01:00
parent 5855ffbe85
commit e3ea1dd2fe
5 changed files with 10 additions and 6 deletions
+4 -1
View File
@@ -41,7 +41,10 @@ boost::filesystem::path get_temporary_directory();
* We explicitly don't do this for wineserver itself since from my testing that
* can actually increase latencies.
*
* @param sched_fifo If true, set the current process/thread's scheudling policy
* to `SCHED_FIFO`. Otherwise reset it back to `SCHWED_OTHER`.
*
* @return Whether the operation was successful or not. This will fail if the
* user does not have the privileges to set realtime priorities.
*/
bool set_realtime_priority();
bool set_realtime_priority(bool sched_fifo);