Alexandre Julliard pushed to branch master at wine / wine
Commits: e953635f by William Horvath at 2025-02-28T14:52:13+01:00 server: Use a high precision timespec directly for poll timeouts on supported platforms.
Instead of first converting to milliseconds, then back to a nanosecond-precision timespec.
This mitigates a side effect of the global current_time and monotonic_time being updated on every server call's timeout, where the end time of any unrelated server call is moved into the future (depending on the frequency of server calls).
By using a more granular timeout, the overall frequency of server calls doesn't have as great of an effect on each individual timeout, as we don't have to wait for an entire millisecond (which was due to the ceiling operation in get_next_timeout).
Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=57849
- - - - - 87ca5db4 by William Horvath at 2025-02-28T14:52:13+01:00 server: Use epoll_pwait2 for the main loop on Linux.
This allows higher precision waits, to match the other platforms where we can already use a timespec directly.
Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=57849
- - - - -
4 changed files:
- configure - configure.ac - include/config.h.in - server/fd.c
View it on GitLab: https://gitlab.winehq.org/wine/wine/-/compare/1bb69c59e157bc593d36314b2401d9...