tokio-rs / loom

Concurrency permutation testing tool for Rust.
MIT License
2.15k stars 112 forks source link

Add get_mut() to Mutex and RwLock #322

Closed akonradi closed 1 year ago

akonradi commented 1 year ago

Add the standard library get_mut() method to Mutex and RwLock. This provides mutable access without locking for callers who already hold a &mut Mutex or &mut RwLock.