Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
mpyne
on April 16, 2014
|
parent
|
context
|
favorite
| on:
C/C++ Fiddle
C has atomic types now also. And I believe in general that volatile only prevents elision of reads and stores, but not optimization in general. That works for many cases (and I think it would work here) but it doesn't solve data races in general.
Consider applying for YC's Summer 2026 batch! Applications are open till May 4
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: