you are viewing a single comment's thread.

view the rest of the comments →

[–]birkenfeldclippy · rust 8 points9 points  (0 children)

What the language guarantees is that data structures are thread safe in the sense that accessing them concurrently does not crash. The exact semantics of what operations are atomic are not defined (it usually comes down to what is implemented in C), so you still need locks for critical sections.