4 ms·
Rust compiler forbids multiple threads to access the same memory location not protected by a Mutex.
by yangl1996 7y ago
Rust compiler forbids multiple threads to access the same memory location not protected by a Mutex.
- hexaga 7y agoThat is, only when said memory location is accessed mutably. Immutable references are perfectly ok to follow concurrently.