2 ms·
Can you link to the discussion this is referencing? I can't imagine parking_lot outright replacing the mutex in std, rather than being added as an optional alte
by kibwen 8y ago
Can you link to the discussion this is referencing? I can't imagine parking_lot outright replacing the mutex in std, rather than being added as an optional alternative... what would be the supported way of deliberately using the platform-native mutex?
- the_mitsuhiko 8y agoThe discussion is partially here: https://internals.rust-lang.org/t/standard-library-synchronization-primitives-and-undefined-behavior/8439 https://internals.rust-lang.org/t/standard-library-synchroni... The PR for std is here: https://github.com/rust-lang/rust/pull/56410 https://github.com/rust-lang/rust/pull/56410 Mostly comes to the platform native APIs habing various soundness issues.