Skip to content
Snippets Groups Projects
  1. Dec 02, 2020
  2. Dec 01, 2020
  3. Nov 17, 2020
  4. Nov 16, 2020
  5. Nov 12, 2020
  6. Nov 09, 2020
  7. Sep 24, 2020
  8. Sep 22, 2020
  9. Sep 09, 2020
  10. Aug 14, 2020
  11. Aug 10, 2020
  12. Aug 03, 2020
  13. Jul 24, 2020
  14. Jul 17, 2020
  15. May 26, 2020
  16. May 19, 2020
  17. Apr 16, 2020
  18. Apr 07, 2020
  19. Apr 06, 2020
  20. Mar 31, 2020
  21. Mar 26, 2020
  22. Mar 24, 2020
  23. Mar 05, 2020
  24. Dec 13, 2019
  25. Nov 28, 2019
    • Charles Davis's avatar
      ntdll: Fix tick count calculation on Mac. · 289d456d
      Charles Davis authored and Alexandre Julliard's avatar Alexandre Julliard committed
      
      Inspired by a patch by Andrew Eikum.
      
      macOS's mach_absolute_time() stops counting when the computer goes to
      sleep/suspend/hibernate/etc. However, Windows's GetTickCount() does not
      stop counting. mach_continuous_time() matches Windows's behavior.
      
      BSD's CLOCK_MONOTONIC already counts asleep time.
      
      Unfortunately, there is no clock source on Linux which does exactly what
      we want. CLOCK_MONOTONIC_RAW is unaffected by NTP adjustment, but like
      mach_absolute_time() doesn't keep ticking when the computer is asleep.
      CLOCK_BOOTTIME does keep ticking, but it is affected by NTP adjustments.
      CLOCK_MONOTONIC has both problems. What's needed is a
      CLOCK_BOOTTIME_RAW, which would not be slewed by adjtimex(2) and would
      count time spent asleep.
      
      To avoid issues with skew and performance, this patch falls back to
      mach_absolute_time() on macOS if mach_continuous_time() is unavailable.
      Note that mach_continuous_time() was introduced in macOS 10.12, meaning
      that if the minimum version required is less than that, it will be
      linked weakly. Therefore we must check that it is nonnull before
      attempting to call it.
      
      Signed-off-by: default avatarChip Davis <cdavis@codeweavers.com>
      Signed-off-by: default avatarHuw Davies <huw@codeweavers.com>
      Signed-off-by: Alexandre Julliard's avatarAlexandre Julliard <julliard@winehq.org>
      289d456d
  26. Nov 19, 2019
  27. Nov 08, 2019
  28. Sep 23, 2019
  29. Sep 03, 2019
  30. Sep 02, 2019
  31. Aug 29, 2019
Loading