Expand Minimize
This topic has not yet been rated - Rate this topic

InterlockedBitTestAndReset64 function

Tests the specified bit of the specified LONG64 value and sets it to 0. The operation is atomic.

Syntax


BOOLEAN WINAPI InterlockedBitTestAndReset64(
  _In_  LONG64 volatile *Base,
  _In_  LONG64 Bit
);

Parameters

Base [in]

A pointer to a variable.

Bit [in]

The bit position to be tested.

Return value

The value of the specified bit.

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 _interlockedbittestandreset64.

This function generates a full memory barrier (or fence) to ensure that memory operations are completed in order.

Requirements

Header

Winnt.h (include Windows.h)

See also

Interlocked Variable Access
InterlockedBitTestAndReset
InterlockedBitTestAndResetAcquire
InterlockedBitTestAndResetRelease
InterlockedBitTestAndSet
InterlockedBitTestAndSetAcquire
InterlockedBitTestAndSetRelease
InterlockedBitTestAndSet64
Synchronization Functions

 

 

Send comments about this topic to Microsoft

Build date: 12/18/2012

Did you find this helpful?
(1500 characters remaining)

Community Additions

ADD
© 2013 Microsoft. All rights reserved.