#mutex #rwlock #once #condvar #thread

parking_lot_rt

Parking-lot fork for real-time applications

1 unstable release

0.12.1 Apr 24, 2024

#1044 in Concurrency

Download history 50/week @ 2024-11-15 63/week @ 2024-11-22 79/week @ 2024-11-29 74/week @ 2024-12-06 70/week @ 2024-12-13 58/week @ 2024-12-20 100/week @ 2024-12-27 278/week @ 2025-01-03 170/week @ 2025-01-10 183/week @ 2025-01-17 99/week @ 2025-01-24 61/week @ 2025-01-31 127/week @ 2025-02-07 89/week @ 2025-02-14 93/week @ 2025-02-21 102/week @ 2025-02-28

428 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