#lock-free #real-time #read-write #data-structures

simple-left-right

Lockfree, realtime safe and copy-free Synchronisation

1 unstable release

0.1.0 Sep 24, 2024

#347 in Concurrency

Download history 136/week @ 2024-09-22 52/week @ 2024-09-29 10/week @ 2024-10-06

198 downloads per month

MIT/Apache

18KB
300 lines

Simple left right

Simpler Version of left-right, which only allows one reader. Also allows real-time safe read operations and is designed for this use-case.


lib.rs:

Simpler version of the left-right from Jon Gjengset library.

Uses two copies of the value to allow doing small changes, while still allowing non-blocking reading. Writing can block, while reading doesn't.

Dependencies

~0–24MB
~335K SLoC