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

Abstract the state type for futexes #131841

Merged
merged 1 commit into from
Oct 18, 2024
Merged

Commits on Oct 17, 2024

  1. Abstract the state type for futexes

    In the same way that we expose SmallAtomic and SmallPrimitive to allow
    Windows to use a value other than an AtomicU32 for its futex state, this
    patch switches the primary futex state type from AtomicU32 to
    futex::Atomic.  The futex::Atomic type should be usable as an atomic
    value with underlying primitive type equal to futex::Primitive.
    
    This allows supporting the futex API on systems where the underlying
    kernel futex implementation requires more state than simply an
    AtomicU32.
    
    All in-tree futex implementations simply define {Atomic,Primitive}
    directly as {AtomicU32,u32}.
    paulmenage committed Oct 17, 2024
    Configuration menu
    Copy the full SHA
    cf7ff15 View commit details
    Browse the repository at this point in the history