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

parking_lot_rt

Parking-lot fork for real-time applications

1 unstable release

0.12.1 Apr 24, 2024

#690 in Concurrency

Download history 118/week @ 2024-07-21 93/week @ 2024-07-28 42/week @ 2024-08-04 73/week @ 2024-08-11 135/week @ 2024-08-18 123/week @ 2024-08-25 60/week @ 2024-09-01 38/week @ 2024-09-08 48/week @ 2024-09-15 88/week @ 2024-09-22 64/week @ 2024-09-29 67/week @ 2024-10-06 134/week @ 2024-10-13 49/week @ 2024-10-20 58/week @ 2024-10-27 46/week @ 2024-11-03

331 downloads per month
Used in 22 crates (9 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