20 Feb
2025
20 Feb
'25
9:07 p.m.
Rémi Bernon (@rbernon) commented about server/fd.c:
static inline void main_loop_epoll(void) { - int i, nget, ret, timeout; + BOOL infinite; + int i, nget, ret; + struct timespec ts; port_event_t events[128];
if (port_fd == -1) return;
while (active_users) { - timeout = get_next_timeout(); + infinite = !get_next_timeout_ts( &ts );
You could even return a `timespec_t *`, NULL or to the provided ts parameter, and save the `if (infinite)` below. -- https://gitlab.winehq.org/wine/wine/-/merge_requests/7392#note_95420