Amanieu / parking_lot

Compact and efficient synchronization primitives for Rust. Also provides an API for creating custom synchronization primitives.
Apache License 2.0
2.76k stars 217 forks source link

Update documentation of differences between `parking_lot::Mutex` and `std::sync::Mutex` #428

Open Qqwy opened 9 months ago

Qqwy commented 9 months ago

I was today years old when I found out that actually Rust's Mutexes have been optimized to no longer box on most platforms, already back in v1.62.0 (tracking issue). Besides this, I believe the standard mutexes can now also be statically constructed.

I think it would be good to revisit the list of differences in parking_lot's README and in the module-docs of Mutex since they are no longer fully up-to-date.