3 releases

0.1.2 Aug 20, 2022
0.1.1 Mar 21, 2022
0.1.0 Nov 14, 2020

#837 in Concurrency

Download history 14/week @ 2024-02-26 3/week @ 2024-03-11 47/week @ 2024-04-01 141/week @ 2024-04-15

188 downloads per month
Used in drop-bin

MIT/Apache

15KB
306 lines

try-rwlock

TryRwLock is a lightweight readers-writer lock implemented with atomics that does not support blocking.

A readers-writer lock allows multiple readers or one writer to access it at a time.

See Also

try-lock and try-mutex provide a similar function to this, but implement mutexes not readers-writer locks.

License: MIT OR Apache-2.0


lib.rs:

TryRwLock is a lightweight readers-writer lock implemented with atomics that does not support blocking.

A readers-writer lock allows multiple readers or one writer to access it at a time.

See Also

try-lock and try-mutex provide a similar function to this, but implement mutexes not readers-writer locks.

No runtime deps