From 56d6d84436305bf7b82a5118f6b3edc9311b02ee Mon Sep 17 00:00:00 2001 From: stransky Date: Mon, 7 Oct 2024 12:15:32 +0000 Subject: [PATCH] Bug 1890074 [Wayland] Use SCHED_FIFO for wayland proxy thread r=emilio Use SCHED_FIFO for wayland proxy thread instead of SCHED_RR. It means the proxy will not be interupted until all events are processed and we'll wait in poll(). It helps to get all events from compositor in time and don't be disconnected as unresponsible application. Differential Revision: https://phabricator.services.mozilla.com/D224740 --- third_party/wayland-proxy/wayland-proxy.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/third_party/wayland-proxy/wayland-proxy.cpp b/third_party/wayland-proxy/wayland-proxy.cpp index 065035e5c9e9..66a3186ab4bf 100644 --- a/third_party/wayland-proxy/wayland-proxy.cpp +++ b/third_party/wayland-proxy/wayland-proxy.cpp @@ -801,7 +801,7 @@ bool WaylandProxy::RunThread() { sched_param param; if (pthread_attr_getschedparam(&attr, ¶m) == 0) { - param.sched_priority = sched_get_priority_min(SCHED_RR); + param.sched_priority = sched_get_priority_min(SCHED_FIFO); pthread_attr_setschedparam(&attr, ¶m); }