Is this rule about volatile usage strict?

前端 未结 8 1786
梦毁少年i
梦毁少年i 2020-12-11 20:36

I\'ve seen this sentence:

the general rule is, if you have variables of primitive type that must be shared among multiple threads, declare those

8条回答
提交回复
热议问题