r3-os / r3

R3-OS — Experimental static (μITRON-esque) RTOS for deeply embedded systems, testing the limit of Rust's compile-time evaluation and generics
Apache License 2.0
159 stars 8 forks source link

Stop storing a reference in a lock guard #15

Open yvt opened 1 year ago

yvt commented 1 year ago

https://github.com/rust-lang/rust/pull/97027

https://github.com/r3-os/r3/blob/57184ad718260cb0a284ed113dc6052a64d9b829/src/r3_port_std/src/threading_windows.rs#L234-L237

yvt commented 1 year ago

The fix is ready, but I'm not quite sure how to describe the motivations for the change.