#lock-free #atomic

no-std try-rwlock

Fast non-blocking readers-writer lock

1 unstable release

0.1.0 Nov 14, 2020

#60 in #atomic


Used in drop-bin

MIT/Apache

10KB
214 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