2 ms·
C got atomic values in C11: http://en.cppreference.com/w/c/language/atomic http://en.cppreference.com/w/c/language/atomic Not that I disagree with your comment
by viraptor 11y ago
C got atomic values in C11: http://en.cppreference.com/w/c/language/atomic http://en.cppreference.com/w/c/language/atomic
Not that I disagree with your comment in general, but atomic values do exist in many languages.
- AYBABTME 11y agoAlso in Go https://golang.org/pkg/sync/atomic/ https://golang.org/pkg/sync/atomic/
- 4ad 11y agoThanks for the reference, I knew about C11 atomic types, and, I should have use a better phrasing. Note that C11 atomics are still not applicable to multi-word aggregate types, like structs. You'd use atomics in C11 (in the type system), for what you'd use sync/atomic (like other poster mentioned) in Go (outside the type system).