InterlockedOr 函数 (miniport.h)
InterlockedOr 例程以原子方式计算按位 OR 运算。
语法
LONG InterlockedOr(
[in, out] LONG volatile *Destination,
[in] LONG Value
);
参数
[in, out] Destination
指向具有 值的变量的指针。 作的结果存储在变量中。
[in] Value
指定由目标 指向的变量的 ORed 值。
返回值
InterlockedOr 返回 目标指向的变量中存储的原始值。
言论
InterlockedOr 原子计算 *目标|=值。
不能对非缓存内存使用互锁作。
要求
要求 | 价值 |
---|---|
目标平台 | 桌面 |
标头 | miniport.h (包括 Wdm.h、Ntddk.h、Ntifs.h、Miniport.h) |
IRQL | 任何级别 |