被声明为volatile的InterlockedIncrement参数的效果是什么 [英] What is the effect of InterlockedIncrement argument declared as volatile

查看:144
本文介绍了被声明为volatile的InterlockedIncrement参数的效果是什么的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

InterlockedIncrement 和其他联锁操作声明他们的论点是不稳定的。为什么?这是什么意思和效果?

InterlockedIncrement and other Interlocked operations declare their arguments as volatile. Why? What is the intention and effect of this?

推荐答案

可能的效果非常小。最可能的目的是允许用户将 volatile - 限定的变量传递到这些函数,而不需要类型转换。

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参数的效果是什么的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆