sway-patched-tray-menu-github/include/sway
Rouven Czerwinski a3a82efbf6 realtime: request SCHED_RR using CAP_SYS_NICE
Try to gain SCHED_RR (round-robin) realtime scheduling privileges before
starting the server. This requires CAP_SYS_NICE on Linux systems.
We additionally register a pthread_atfork callback which resets the
scheduling class back to SCHED_OTHER (the Linux system default).

Due to CAP_SYS_NICE, setting RLIMIT_RTPRIO has no effect on the process
as documented within man 7 sched (from Linux):

  Privileged (CAP_SYS_NICE) threads ignore the RLIMIT_RTPRIO limit;
  as with older kernels, they can make arbitrary changes to
  scheduling policy and priority. See getrlimit(2) for further
  information on RLIMIT_RTPRIO

Note that this requires the sway distribution packagers to set the
CAP_SYS_NICE capability on the sway binary.

Supersedes #6992
2022-05-18 11:20:17 +02:00
..
desktop idle_inhibit: Store wlr inhibitor instead of view 2021-03-21 12:27:29 +01:00
input Implement ext-session-lock-v1 2022-04-29 09:06:36 +02:00
tree Remove some erroneous apostrophes in comments 2022-02-22 09:50:58 +01:00
commands.h Add focused_tab_title 2021-12-10 16:09:29 +01:00
config.h config: Remove unused mouse binding structure 2022-05-11 10:19:27 +02:00
criteria.h Replace pcre with pcre2 2022-03-12 14:02:32 +01:00
decoration.h Handle views created after decoration mode is sent for xdg-shell 2018-08-06 15:20:30 +01:00
desktop.h Upgrade for wlroots surface refactoring 2022-01-13 14:01:37 +03:00
ipc-json.h i3-compat: add GET_BINDING_STATE IPC command 2020-06-14 00:55:14 -04:00
ipc-server.h ipc: add an input event 2019-07-23 20:45:46 +03:00
layers.h Upgrade for wlroots surface refactoring 2022-01-13 14:01:37 +03:00
output.h output: change output::destroy to output::disable 2021-12-17 14:39:48 +01:00
server.h realtime: request SCHED_RR using CAP_SYS_NICE 2022-05-18 11:20:17 +02:00
surface.h Upgrade for wlroots surface refactoring 2022-01-13 14:01:37 +03:00
swaynag.h Spawn swaynag as a wayland client 2019-04-14 12:41:59 +03:00
xdg_decoration.h Improve CSD logic 2018-09-27 22:51:37 +10:00
xwayland.h Parse missing i3 window types 2018-10-21 15:59:04 +02:00