Amanieu/parking_lot
View on GitHub ↗ ★ 3,433 Rust
Compact and efficient synchronization primitives for Rust. Also provides an API for creating custom synchronization primitives.
12 mentions on Hacker News by 11 people: 3 stories, 9 comments · first 2016-05-23 · latest 2025-11-25
20082026
-
…inversion. Uhh no, everyone in Linux userspace uses futexes these days to wait on a contended lock. https://github.com/Amanieu/parking_lot/blob/03d36d62fecbd85c...
comment by yencabulator · 2025-11-25 · in Ditch your mutex, you deserve better -
…in the queue, and so can avoid the additional overhead by making the futex call directly. [0]: https://github.com/Amanieu/parking_lot/blob/739d370a809878e4...
comment by ibraheemdev · 2025-08-20 · in Without the futex, it's futile -
…for my toy Java Virtual Machine, though I've since switched to a parking-lot-like approach. [0]: https://github.com/amanieu/parking_lot [1]: https://webkit.org/blog/6161/locking-in-webkit [2]: https://specificprotagonist.net/jvm-futex.html
comment by skitter · 2025-06-03 · in Fun with Futex -
▲ 1
Parking_lot: Compact and efficient synchronization primitives for Ruststory by lnyan · 2021-07-02 · 0 comments
-
…on top of that [2]... [1] https://opensource.apple.com/source/xnu/xnu-4903.241.1/osfmk... [2] https://github.com/Amanieu/parking_lot/issues/205
comment by comex · 2021-05-17 · in How M1 Macs feel faster than Intel models: it’s about QoS -
…in such a case is fine-grained concurrency and a different approach, not lock-free algorithms. [1] https://github.com/Amanieu/parking_lot
comment by adwn · 2020-10-21 · in Discipline Doesn’t Scale -
…crate [1], which implements its own mutex independently of the standard library mutex. [1] https://github.com/Amanieu/parking_lot
comment by adwn · 2020-08-15 · in Benign data races considered harmful -
…crates. At least for parking_lot, its README has a long list with its advantages over std: https://github.com/Amanieu/parking_lot/blob/master/README.md
comment by cesarb · 2020-06-16 · in 3K, 60fps, 130ms: achieving it with Rust -
…enough it lets the thread sleep with the timeout. Which matches the description of that library: https://github.com/Amanieu/parking_lot "This library provides implementations of Mutex, RwLock, Condvar and Once that are smaller, faster and…
comment by acqq · 2020-01-04 · in Mutexes are faster than Spinlocks -
…And that looks like it’s not using pthread, instead relying on primitives: https://github.com/Amanieu/parking_lot/blob/master/src/raw_m...
comment by bluejekyll · 2020-01-04 · in Mutexes are faster than Spinlocks -
▲ 3
Compact and efficient synchronization primitives for Ruststory by rjammala · 2018-04-27 · 0 comments
-
▲ 4
Parking_lot: Compact and efficient synchronization primitives for Ruststory by adamnemecek · 2016-05-23 · 0 comments