Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Windows: Support sub-millisecond sleep #116461

Merged
merged 2 commits into from
Oct 24, 2023
Merged

Commits on Oct 6, 2023

  1. Windows: Support sub-millisecond sleep

    Use `CreateWaitableTimerExW` with `CREATE_WAITABLE_TIMER_HIGH_RESOLUTION`. Does not work before Windows 10, version 1803 so in that case we fallback to using `Sleep`.
    ChrisDenton committed Oct 6, 2023
    Configuration menu
    Copy the full SHA
    fca182b View commit details
    Browse the repository at this point in the history
  2. Miri: Add CreateWaitableTimerEx stub

    This function will always fail, allowing std's `Sleep` fallback path to be taken instead.
    ChrisDenton committed Oct 6, 2023
    Configuration menu
    Copy the full SHA
    fbf2567 View commit details
    Browse the repository at this point in the history