The seqcount latch lock type
The seqcount latch lock type
Posted Sep 17, 2020 19:25 UTC (Thu) by cyphar (subscriber, #110703)Parent article: The seqcount latch lock type
This design reminds me a little bit of the "evmap" Rust library which implements a lock-free HashMap -- it also works by storing two copies (one for writers and the other for readers) and swapping between the two after all the existing readers are no longer in the middle of a read. It's a pretty cute idea.
Posted Oct 1, 2020 1:49 UTC (Thu)
by xi0n (subscriber, #138144)
[Link]
The seqcount latch lock type