Timeline for Why does volatile exist?
Current License: CC BY-SA 2.5
3 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Jul 15, 2018 at 13:17 | comment | added | Peter Cordes |
This answer is obsolete now that C++11 provides std::atomic<LONG> so you can write lockless code more safely without problems of having pure loads / pure stores optimized away, or reordered, or whatever else.
|
|
Jun 28, 2018 at 2:05 | comment | added | curiousguy | You absolutely do NOT need to declare a variable volatile in order to be able to use InterlockedIncrement. | |
Sep 17, 2008 at 11:55 | history | answered | Frederik Slijkerman | CC BY-SA 2.5 |