网站首页  词典首页

请输入您要查询的函数:

 

术语 interlockedexchangeacquire64
释义 InterlockedExchangeAcquire64
语法:
C++
LONGLONG __cdecl InterlockedExchangeAcquire64(
__inout LONGLONG volatile Target,
__in LONGLONG Value
);
InterlockedExchangeAcquire64功能
设置一个64位变量为指定的值作为一个原子操作。该操作是通过收购内存访问语义。
参数
目标[ in , out ]
一个交换价值的指针。该函数设置这个参数的值值的参数值,并返回此参数的先验价值。
值 [in]
的值进行比较的目标参数的值。
返回值
该函数返回的目标参数的初始值。
备注
在互锁功能提供了一个同步进入一个变量是由多个线程共享的简单机制。此函数是原子与其他方面的互锁函数的调用。
此功能是使用一个编译器的内在可能的情况下。 For more information, see the Winbase.h header file and _InterlockedExchange64_acq .
此功能只支持安腾处理器家族(IPF)的。
要求:
client最低支持Vista
最低支持serverWindows服务器2003
HeaderWinbase.h(头文件:winuser.h)
参见
互锁变量访问
InterlockedCompareExchangeAcquire64
InterlockedExchange
InterlockedExchange64
InterlockedExchangePointer
同步功能
如果有任何问题和意见,请发送给微软(wsddocfb@microsoft.com)
生成日期:2009年8月27日
==英文原文==InterlockedExchangeAcquire64 Function
Sets a 64-bit variable to the specified value as an atomic operation. The operation is performed using acquire memory access semantics.
Syntax
C++
LONGLONG __cdecl InterlockedExchangeAcquire64(
__inout LONGLONG volatile Target,
__in LONGLONG Value
);
Parameters
Target [in, out]
A pointer to the value to exchange. The function sets the value of this parameter to the value of the Value parameter, and returns the prior value of this parameter.
Value [in]
The value to be compared to the value of the Target parameter.
Return Value
The function returns the initial value of the Target parameter.
Remarks
The interlocked functions provide a simple mechanism for synchronizing access to a variable that is shared by multiple threads. This function is atomic with respect to calls to other interlocked functions.
This function is implemented using a compiler intrinsic where possible. For more information, see the Winbase.h header file and _InterlockedExchange64_acq .
This function is supported only on Itanium Processor Family (IPF).
Requirements
Minimum supported clientWindows Vista
Minimum supported serverWindows Server 2003
HeaderWinbase.h (include Windows.h)
See Also
Interlocked Variable Access
InterlockedCompareExchangeAcquire64
InterlockedExchange
InterlockedExchange64
InterlockedExchangePointer
Synchronization Functions
Send comments about this topic to Microsoft
Build date: 8/27/2009
==原始网址==http://msdn.microsoft.com/en-us/library/ms683596(VS.85).aspx\n
随便看

 

windows api函数参考手册包含2258条windows api函数文档,详细介绍nodejs、java、rust调用windows api的方法技巧,是学习windows api编程的入门中文文档。

 

Copyright © 2004-2023 Winrtm.com All Rights Reserved
京ICP备2021023879号-40 更新时间:2024/10/6 13:25:57