|
|
|
|
|
by kibwen
3341 days ago
|
|
To be clear, Rust's model of locking data rather than locking code is really lovely, but that doesn't mean that it's not possible to mess up locks: Rust only prevents data races, not race conditions in general. (However, you're correct in that it's not undefined behavior to mess up locking in Rust, at least not without an `unsafe` block involved.) |
|
You know all this, of course. I'm just commenting for others' sake.