#rw-lock #mutex #condvar #once #thread

parking_lot_rt

Parking-lot fork for real-time applications

1 unstable release

0.12.1 Apr 24, 2024

#1371 in Concurrency

Download history 119/week @ 2025-05-29 129/week @ 2025-06-05 152/week @ 2025-06-12 185/week @ 2025-06-19 197/week @ 2025-06-26 182/week @ 2025-07-03 130/week @ 2025-07-10 116/week @ 2025-07-17 93/week @ 2025-07-24 72/week @ 2025-07-31 87/week @ 2025-08-07 53/week @ 2025-08-14 137/week @ 2025-08-21 218/week @ 2025-08-28 242/week @ 2025-09-04 234/week @ 2025-09-11

842 downloads per month
Used in 25 crates (10 directly)

MIT/Apache

170KB
3.5K SLoC

This library provides implementations of Mutex, RwLock, Condvar and Once that are smaller, faster and more flexible than those in the Rust standard library. It also provides a ReentrantMutex type.


parking_lot real-time

A fork of the well-known parking_lot crate with real-time-safe patches.

  • Threads are parked immediately if a lock is not available.

  • Spin-free Once, Mutex and RwLock implementations.

THIS IS NOT A HIGH-LOAD CRATE. It is designed for real-time systems, use it only if you know what you are doing.

Dependencies

~0.2–7MB
~26K SLoC