To summarize what others have correctly written: C/C++ volatile is for hardware access and interrupts. C++11 atomic<> is for inter-thread ...
確定! 回上一頁