https://bugs.winehq.org/show_bug.cgi?id=57035
Zeb Figura z.figura12@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |z.figura12@gmail.com
--- Comment #3 from Zeb Figura z.figura12@gmail.com --- Does POSIX guarantee that if a process sleeps until absolute time X, that its next query for time will be greater than or equal to X? It's not clear to me whether clock_nanosleep() actually guarantees this.
If process A sleeps until absolute time X, wakes up process B, and process B checks time, is it guaranteed to be greater than or equal to X?
If process A gets time X, sleeps for C ms, then wakes up process B, does B get at least X+C?
The last one is the situation we're dealing with here (process A is wineserver; C is correctly calculated to always round up). If POSIX guarantees this, then it's a host (Linux) bug. If POSIX does not guarantee this, then I don't think there's anything we can do.