https://stackoverflow.com/questions/6837699/are-mutex-lock-functions-sufficient-without-volatile
因为进行函数调用的时候,编译器不知道它会不会修改全局变量,所以就防止了这个共享变量被放到寄存器中?
https://stackoverflow.com/questions/6837699/are-mutex-lock-functions-sufficient-without-volatile
因为进行函数调用的时候,编译器不知道它会不会修改全局变量,所以就防止了这个共享变量被放到寄存器中?
Except as otherwise noted, this blog is licensed under CC BY-SA 4.0 License.
©2021-
searchstar
|
pv
|
uv
Theme Tree
by Wu Jun
Powered by Hexo