#mutex #rwlock #once #condvar #thread #patch

parking_lot_rt

Parking-lot fork for real-time applications

1 unstable release

0.12.1 Apr 24, 2024

#955 in Concurrency

Download history 73/week @ 2024-10-16 56/week @ 2024-10-23 53/week @ 2024-10-30 49/week @ 2024-11-06 29/week @ 2024-11-13 68/week @ 2024-11-20 75/week @ 2024-11-27 79/week @ 2024-12-04 72/week @ 2024-12-11 60/week @ 2024-12-18 93/week @ 2024-12-25 236/week @ 2025-01-01 188/week @ 2025-01-08 182/week @ 2025-01-15 133/week @ 2025-01-22 43/week @ 2025-01-29

571 downloads per month
Used in 22 crates (8 directly)

MIT/Apache

170KB
3.5K SLoC

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.


lib.rs:

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.

Dependencies

~0.2–6MB
~26K SLoC