#read-write #cell #lock #blocking #reduce #aims #amount

qrwcell

Read-write cell that aims to reduce the amount of blocking compared to a single read-write lock

2 unstable releases

0.2.0 Aug 3, 2021
0.1.0 Jul 26, 2021

#47 in #aims

MIT license

10KB
217 lines

qrwcell - quick read-write cell

Crates.io Docs.rs Rust

Read-write cell that aims to reduce the amount of blocking compared to a single read-write lock.

The cell has two slots - one for reading and one for writing. Writing alternates the slot that is currently served to readers, thereby minimising blocking on a reader-writer lock.


lib.rs:

qrwcell - quick read-write cell

Read-write cell that aims to reduce the amount of blocking compared to a single read-write lock.

The cell has two slots - one for reading and one for writing. Writing alternates the slot that is currently served to readers, thereby minimising blocking on a reader-writer lock.

Dependencies

~480–790KB
~13K SLoC