Re:A Guide to Porting C/C++ to Rust
by catnaroek on Sunday January 29, 2017 @10:20AM
(#13514452)
I don't see any C++ compilers raising warnings because you use shared mutable objects without grabbing the right lock first.
[ Parent
| on HN ]
Re:A Guide to Porting C/C++ to Rust
by MaulingMonkey on Sunday January 29, 2017 @04:45PM
(#13516891)
Check out https://clang.llvm.org/docs/ThreadSafetyAnalysis.html
Requires manual annotation and isn't nearly as systematic and comprehensive as the Rust compiler, but I've found threading bugs with this in existing code that I was about to modify.