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
This commit is contained in:
stransky 2024-10-07 12:15:32 +00:00
parent 3f9cb0ceab
commit 56d6d84436

View File

@ -801,7 +801,7 @@ bool WaylandProxy::RunThread() {
sched_param param;
if (pthread_attr_getschedparam(&attr, &param) == 0) {
param.sched_priority = sched_get_priority_min(SCHED_RR);
param.sched_priority = sched_get_priority_min(SCHED_FIFO);
pthread_attr_setschedparam(&attr, &param);
}