Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

You do use it on embedded systems, hence my note about using it when accessing things like memory-mapped devices in low-level code (depending on what you're doing). However `volatile` is not at all correct for multi-threaded code and that's a very common misconception. It's really not correct for basically anything except for embedded systems.


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: