Re:Measuring mutexes, spinlocks and how bad the Linux schedu...
by zozbot234 on Wednesday January 01, 2020 @06:36AM
(#21927650)
Rust has "interior" mutability, meaning that shared references are not true 'read only' references; they can be used for writing if the type supports such an operation. What makes Rust data-race free is the combination of 'interior' mutability and the Send and Sync traits, which control moving or referencing objects across threads.
[ Parent
| on HN ]
There are no comments on this comment yet.