Re:Lock-Free Rust: Crossbeam in 2019
by crimsonalucard on Wednesday January 30, 2019 @05:33PM
(#19040311)
Ah so locks come into play when you deliberately disable compile checks?
[ Parent
| on HN ]
Re:Lock-Free Rust: Crossbeam in 2019
by uabstraction on Wednesday January 30, 2019 @07:46PM
(#19041205)
Not exactly. Disabling the borrow checker is an internal implementation detail of the locking types, but it happens opaquely to the code using the locks.
The locking types make assurances with regards to the lifetimes of their parameters / contents / return values and these are still enforced by the compiler.