3 releases

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

#947 in Concurrency


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