网站首页  计算机词典

请输入您要查询的字词:

 

字词 interlockedincrement
释义 InterlockedIncrement
语法:
C++
LONG __cdecl InterlockedIncrement(
__inout LONG volatile *Addend
);
InterlockedIncrement函数
增量(增加一)指定的值32位变量作为一个原子操作。
操作在64位的值,使用InterlockedIncrement64功能。
参数
加数[ in , out ]
一个指针变量递增。
返回值
该函数返回结果递增值。
备注
该变量指出的加数参数必须在32对齐位边界,否则,此函数将表现在多处理器的x86系统和不可预测的任何非x86系统。见_aligned_malloc。
在互锁功能提供了一个同步进入一个变量是由多个线程共享的简单机制。此函数是原子与其他方面的互锁函数的调用。
此功能是使用一个编译器的内在可能的情况下。有关详细信息,请参阅Winbase.h头文件和_InterlockedIncrement。
这个函数生成一个完整的内存屏障(或栅栏),以确保内存操作才能完成。
英特尔森林小组:对于性能要求较高的应用程序,使用InterlockedIncrementAcquire或InterlockedIncrementRelease代替。
要求:
最低支持:client-Windows 2000专业版
最低支持server-Windows 2000服务器
HeaderWinbase.h(头文件:winuser.h)
LibraryKernel32.lib
DLLKernel32.dll
参见
互锁变量访问
InterlockedIncrement64
InterlockedIncrementAcquire
InterlockedIncrementRelease
同步功能
如果有任何问题和意见,请发送给微软(wsddocfb@microsoft.com)
生成日期:2009年8月27日
==英文原文==InterlockedIncrement Function
Increments (increases by one) the value of the specified 32-bit variable as an atomic operation.
To operate on 64-bit values, use the InterlockedIncrement64 function.
Syntax
C++
LONG __cdecl InterlockedIncrement(
__inout LONG volatile *Addend
);
Parameters
Addend [in, out]
A pointer to the variable to be incremented.
Return Value
The function returns the resulting incremented value.
Remarks
The variable pointed to by the Addend parameter must be aligned on a 32-bit boundary; otherwise, this function will behave unpredictably on multiprocessor x86 systems and any non-x86 systems. See _aligned_malloc.
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 _InterlockedIncrement .
This function generates a full memory barrier (or fence) to ensure that memory operations are completed in order.
Intel IPF: For performance-critical applications, use InterlockedIncrementAcquire or InterlockedIncrementRelease instead.
Requirements
Minimum supported clientWindows 2000 Professional
Minimum supported serverWindows 2000 Server
HeaderWinbase.h (include Windows.h)
LibraryKernel32.lib
DLLKernel32.dll
See Also
Interlocked Variable Access
InterlockedIncrement64
InterlockedIncrementAcquire
InterlockedIncrementRelease
Synchronization Functions
Send comments about this topic to Microsoft
Build date: 8/27/2009
==原始网址==http://msdn.microsoft.com/en-us/library/ms683614(VS.85).aspx\n
随便看

 

计算机英汉双解词典包含34412条计算机术语英汉翻译词条,基本涵盖了全部常用计算机术语的翻译及用法,是计算机学习及翻译工作的有利工具。

 

Copyright © 2021-2025 foosec.com All Rights Reserved
更新时间:2026/10/23 21:46:27