3 ms·
The equivalent in Rust is RwLock: https://doc.rust-lang.org/std/sync/struct.RwLock.html https://doc.rust-lang.org/std/sync/struct.RwLock.html The more general
by stevefan1999 8mo ago
The equivalent in Rust is RwLock: https://doc.rust-lang.org/std/sync/struct.RwLock.html 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 https://en.wikipedia.org/wiki/Readers%E2%80%93writer_lock