|
|
|
|
|
by Matheus28
3957 days ago
|
|
Using "volatile" for synchronization is wrong and won't work in some architectures and compilers. MSVC does guarantee that in x86 by default (/volatile:ms), but any other compiler is free to do whatever it wants with that code. Suggest either std::atomic or intrinsics, but don't give false information in a tutorial. |
|