3 ms·
The real takeaway is: - Don't write this stuff on your own. - Use someone else's mutex, and someone else's non-blocking datastructure. - Really, don't write
by houseabsolute 16y ago
The real takeaway is:
- Don't write this stuff on your own.
- Use someone else's mutex, and someone else's non-blocking datastructure.
- Really, don't write your own.
Threading is not that hard unless you insist on leaving the safety off and aiming it at your foot.