Hacker GitHub

← All repos

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

Mentions per year 12 mentions · busiest year 2020 (5)
20082026
  1. …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
  2. …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
  3. …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
  4. ▲ 1
    Parking_lot: Compact and efficient synchronization primitives for Rust
    story by lnyan · 2021-07-02 · 0 comments
  5. …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
  6. …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
  7. …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
  8. …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
  9. …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
  10. …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
  11. ▲ 3
    Compact and efficient synchronization primitives for Rust
    story by rjammala · 2018-04-27 · 0 comments
  12. ▲ 4
    Parking_lot: Compact and efficient synchronization primitives for Rust
    story by adamnemecek · 2016-05-23 · 0 comments