win32 API InterlockedCompareExchange
来源:互联网 发布:淘宝话费定期充值 编辑:程序博客网 时间:2024/05/10 22:27
函数原型:
LONG __cdecl InterlockedCompareExchange(
__in_out LONG volatile* Destination,
__in LONG Exchange,
__in LONG Comparand
);
MSDN上的解释:
Performs an atomic compare-and-exchange operation on the specified values. The function compares two specified 32-bit values and exchanges with another 32-bit value based on the outcome of the comparison.
我的理解:
第一个参数和第三个参数比较,如果相等,则将第一个参数的值设为第个参数的值.
Return Value
The function returns the initial value of the Destination parameter.
返回的是第一个参数的初始值
- win32 API InterlockedCompareExchange
- InterlockedCompareExchange 用法
- InterlockedCompareExchange例程
- Win32 API
- win32 api
- win32 api
- Win32 API
- Win32 API
- Win32 API
- win32 api
- InterlockedCompareExchange用法详解
- 调用WIN32 API
- basic win32 api mode
- Win32 API 函数
- Win32 API函数大全
- Win32 API概论
- WIN32 API函数简介
- Win32 API概论
- oracle函数示例(转载)
- POJ 1008解题报告
- My Google Code Jam 2010
- 简单的Hibernate入门介绍
- 火焰特效MaxScript——1.3版
- win32 API InterlockedCompareExchange
- 在PHP5中使用DOM控制XML
- a5xx 摄像头驱动移植(For Linux 2.6.14)
- 红豆居家 连锁加盟
- 资源受限下自动化测试的开展时机
- 计算M×N精确值
- struts2环境搭建
- 火焰特效MaxScript——1.4版
- 数据库复习提纲