|
|
Subscribe / Log in / New account

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.


to post comments

The seqcount latch lock type

Posted Oct 1, 2020 1:49 UTC (Thu) by xi0n (subscriber, #138144) [Link]

It’s very much reminiscent of double buffering in graphics programming.


Copyright © 2025, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds