logoalt Hacker News

stevefan1999today at 4:40 PM0 repliesview on HN

The equivalent in Rust is RwLock: https://doc.rust-lang.org/std/sync/struct.RwLock.html

The more general idea for this is readers-writer lock: https://en.wikipedia.org/wiki/Readers%E2%80%93writer_lock