logoalt Hacker News

wat10000yesterday at 7:32 PM0 repliesview on HN

If you're targeting a vaguely modern C standard, atomics win by being part of the language. C11 has atomics and it's straightforward to use them to implement thread-safe reference counting.