▲ | dontlaugh 2 days ago | |
You didn’t describe any data races. What Rust prevents is very specific. | ||
▲ | int_19h a day ago | parent [-] | |
OP described situations where you get observable invariant violations because of torn non-atomic writes. This is basically any case involving e.g. copying of variables that are larger than whatever's atomic for a given architecture. Say, a struct of 4 isize. |