3 ms·
I’ll be the pedantic one. It doesn’t guarantee thread safety, it guarantees that its data race free. In practice this often reduces to the same thing, but you
by bluejekyll 9y ago
I’ll be the pedantic one. It doesn’t guarantee thread safety, it guarantees that its data race free.
In practice this often reduces to the same thing, but you can still create deadlocks, etc.
- madez 9y agoYes, you are correct. Rusts safety does not rule out deadlocks. Guaranteeing data-race-freeness is however already enough to reject intuitive doubly-linked lists. Thanks for bringing that up, which I don't think is pedantic.