interlockedAnd64 函式 (winnt.h)

在指定的 LONGLONG 值上執行不可部分完成的 AND 作業。

語法

LONG64 InterlockedAnd64(
  [in, out] LONG64 volatile *Destination,
  [in]      LONG64          Value
);

參數

[in, out] Destination

第一個運算元的指標。 此值將會取代為作業的結果。

[in] Value

第二個運算元。

傳回值

函式會傳回 Destination 參數的原始值。

備註

連結函式提供簡單的機制,可同步存取多個執行緒所共用的變數。 此函式與呼叫其他相互連結函式有關,是不可部分完成的。

此函式會盡可能使用編譯器內建函式來實作。 如需詳細資訊,請參閱 WinBase.h 標頭檔與 _InterlockedAnd64

此函式會產生完整記憶體屏障 (或柵欄) ,以確保記憶體作業依序完成。

Itanium 型系統: 針對效能關鍵性應用程式,請改用 InterlockedAnd64AcquireInterlockedAnd64Release

注意 Windows RT 型系統上支援此函式。
 

規格需求

   
目標平台 Windows
標頭 winnt.h (包括 Windows.h)

另請參閱

相互鎖定的變數存取

InterlockedAnd

InterlockedAnd16

InterlockedAnd16Acquire

InterlockedAnd16NoFence

InterlockedAnd16Release

InterlockedAnd64Acquire

InterlockedAnd64NoFence

InterlockedAnd64Release

InterlockedAnd8

InterlockedAnd8Acquire

InterlockedAnd8NoFence

InterlockedAnd8Release

InterlockedAndAcquire

InterlockedAndNoFence

InterlockedAndRelease

同步處理函式