mirror of
https://github.com/robbert-vdh/yabridge.git
synced 2026-05-10 04:30:12 +02:00
Rearrange declarations to match implementations
This commit is contained in:
+12
-12
@@ -88,18 +88,6 @@ boost::filesystem::path get_temporary_directory();
|
|||||||
*/
|
*/
|
||||||
std::optional<int> get_realtime_priority() noexcept;
|
std::optional<int> get_realtime_priority() noexcept;
|
||||||
|
|
||||||
/**
|
|
||||||
* Get the (soft) `RTTIME` resource limit, or the amount of time a `SCHED_FIFO`
|
|
||||||
* process may spend uninterrupted before being killed by the scheduler. A value
|
|
||||||
* of `-1`/`RLIM_INFINITY` means that there is no limit. If there was some error
|
|
||||||
* fetching this value, then a nullopt will be returned.
|
|
||||||
*
|
|
||||||
* This is useful to diagnose issues caused by PipeWire. They use rtkit at the
|
|
||||||
* moment, and both rtkit and PipeWire's rtkit module will enable a realtime CPU
|
|
||||||
* time limit with some low value.
|
|
||||||
*/
|
|
||||||
std::optional<rlim_t> get_rttime_limit() noexcept;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Set the scheduling policy to `SCHED_FIFO` with priority 5 for this process.
|
* Set the scheduling policy to `SCHED_FIFO` with priority 5 for this process.
|
||||||
* We explicitly don't do this for wineserver itself since from my testing that
|
* We explicitly don't do this for wineserver itself since from my testing that
|
||||||
@@ -117,6 +105,18 @@ std::optional<rlim_t> get_rttime_limit() noexcept;
|
|||||||
*/
|
*/
|
||||||
bool set_realtime_priority(bool sched_fifo, int priority = 5) noexcept;
|
bool set_realtime_priority(bool sched_fifo, int priority = 5) noexcept;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Get the (soft) `RTTIME` resource limit, or the amount of time a `SCHED_FIFO`
|
||||||
|
* process may spend uninterrupted before being killed by the scheduler. A value
|
||||||
|
* of `-1`/`RLIM_INFINITY` means that there is no limit. If there was some error
|
||||||
|
* fetching this value, then a nullopt will be returned.
|
||||||
|
*
|
||||||
|
* This is useful to diagnose issues caused by PipeWire. They use rtkit at the
|
||||||
|
* moment, and both rtkit and PipeWire's rtkit module will enable a realtime CPU
|
||||||
|
* time limit with some low value.
|
||||||
|
*/
|
||||||
|
std::optional<rlim_t> get_rttime_limit() noexcept;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Check whether a process with the given PID is still active (and not a
|
* Check whether a process with the given PID is still active (and not a
|
||||||
* zombie).
|
* zombie).
|
||||||
|
|||||||
Reference in New Issue
Block a user