C language function:InterlockedBitTestAndSet sample codes

Search sample code in the internet.It is the result.


TITLE : Windows-driver-samples/entrypts.c at master Microsoft/Windows-driver-samples GitHub
adapterStopInProcess = InterlockedBitTestAndSet((LONG*)&AdapterExtension->PoFxPendingWork, 0); //AdapterStop is at bit 0.......
http://github.com/Microsoft/Windows-driver-samples/blob/master/storage/miniports/storahci/src/entrypts.c


TITLE : Keyed Events
while (m->owned || _interlockedbittestandset(&m->waiters, 0)).......
http://locklessinc.com/articles/keyed_events/
TITLE : Keyed Events
if (!m->owned && !_interlockedbittestandset(&m->waiters, 0)) return 0;.......
http://locklessinc.com/articles/keyed_events/
TITLE : _interlockedbittestandset Intrinsic Functions
unsigned char _interlockedbittestandset(.......
http://msdn.microsoft.com/en-us/library/646k06sz.aspx
TITLE : InterlockedBitTestAndSet function (Windows)
UCHAR WINAPI InterlockedBitTestAndSet(.......
http://msdn.microsoft.com/en-us/library/windows/desktop/ms683549(v=vs.85).aspx
TITLE : RCE Endeavors » 2015 » April
InterlockedBitTestAndSet((LONG *)&pPeb->CrossProcessFlags, 2);.......
http://www.codereversing.com/blog/archives/date/2015/04
search Google

https://www.google.com/#q=InterlockedBitTestAndSet