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

Utility: add a Windows path to the synchronisation support #603

Merged
merged 1 commit into from
May 31, 2023

Commits on May 31, 2023

  1. Utility: add a Windows path to the synchronisation support

    Use a `SRWLOCK` on Windows to support locking.  Slim Reader-Writer locks
    are lightweight mutexes that closely resemble `pthread_mutex_t` in
    functionality.  While possible to use `WaitOnAddress` to implement
    `os_unfair_lock`, that would be more complex and a slightly heavier
    mutex as a starting point seems reasonable.  If it turns out that the
    performance really requires an even lighter weight locking primitive, we
    can refine this to `WaitOnAddress` subsequently.
    compnerd committed May 31, 2023
    Configuration menu
    Copy the full SHA
    9b8ca64 View commit details
    Browse the repository at this point in the history