mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-24 05:11:16 +00:00
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:
parent
3f9cb0ceab
commit
56d6d84436
2
third_party/wayland-proxy/wayland-proxy.cpp
vendored
2
third_party/wayland-proxy/wayland-proxy.cpp
vendored
@ -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);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user