本文介绍了什么是声明为volatile InterlockedIncrement参数的影响的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
等互锁操作申报他们的论据是不稳定。为什么?什么是意图和这种效果呢?
InterlockedIncrement and other Interlocked operations declare their arguments as volatile. Why? What is the intention and effect of this?
推荐答案
的可能产生的影响是很小的。最有可能的目的是允许用户通过挥发性
-qualified变量这些功能,而无需强制类型转换。
The probable effect is very minimal. The most likely intent is to allow users to pass volatile
-qualified variables to these functions without the need for a typecast.
这篇关于什么是声明为volatile InterlockedIncrement参数的影响的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!