C language function:InterlockedCompareExchangePointer sample codes

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


TITLE : Avisynth 2.6 MT - Doom9's Forum
+ while (InterlockedCompareExchangePointer((volatile PVOID*)&g_Bin->g_VideoFrame_recycle_bin, result, result->next) != result->next);.......
http://forum.doom9.org/showthread.php@t=148782


TITLE : Windows-driver-samples/avscan.c at master Microsoft/Windows-driver-samples GitHub
oldTxCtx = InterlockedCompareExchangePointer( &streamContext->TxContext, NULL, TransactionContext );.......
http://github.com/Microsoft/Windows-driver-samples/blob/master/filesys/miniFilter/avscan/filter/avscan.c
TITLE : Pthreads on Microsoft Windows
if (!_InterlockedCompareExchangePointer((void *) l, (void *)0x11, NULL)) return 0;.......
http://locklessinc.com/articles/pthreads_on_windows/
TITLE : Pthreads on Microsoft Windows
if (_InterlockedCompareExchangePointer((void *) l, (void *) ((uintptr_t)state + 16), state) == state) return 0;.......
http://locklessinc.com/articles/pthreads_on_windows/
TITLE : Pthreads on Microsoft Windows
if (!_InterlockedCompareExchangePointer((void *) l, (void *)1, NULL)) return 0;.......
http://locklessinc.com/articles/pthreads_on_windows/
TITLE : InterlockedCompareExchangePointer function (Windows)
PVOID __cdecl InterlockedCompareExchangePointer(.......
http://msdn.microsoft.com/en-us/library/windows/desktop/ms683568(v=vs.85).aspx
TITLE : InterlockedCompareExchangePointer routine (Windows Drivers)
PVOID InterlockedCompareExchangePointer(.......
http://msdn.microsoft.com/en-us/library/windows/hardware/ff547863(v=vs.85).aspx
TITLE : Delphi Singleton Pattern - Stack Overflow
if InterlockedCompareExchangePointer(AObject, newObject, nil) <> nil then.......
http://stackoverflow.com/questions/5392107/delphi-singleton-pattern
TITLE : Delphi Singleton Pattern - Stack Overflow
function InterlockedCompareExchangePointer(var Destination: Pointer; Exchange: Pointer; Comparand: Pointer): Pointer stdcall;.......
http://stackoverflow.com/questions/5392107/delphi-singleton-pattern
TITLE : Delphi Singleton Pattern - Stack Overflow
function InterlockedCompareExchangePointer(var Destination: Pointer; Exchange: Pointer; Comparand: Pointer): Pointer; inline;.......
http://stackoverflow.com/questions/5392107/delphi-singleton-pattern
TITLE : Delphi Singleton Pattern - Stack Overflow
Where is InterlockedCompareExchangePointer() declared? ? Shannon Sep 3 '15 at 1:03.......
http://stackoverflow.com/questions/5392107/delphi-singleton-pattern
TITLE : Tinesware: A simple LockFree Queue (C++, Windows)
InterlockedCompareExchangePointer(&looper, NULL, divider), looper;.......
http://tinesware.blogspot.com/2009/07/simple-lockfree-queue-c-windows.html
TITLE : Tinesware: A simple LockFree Queue (C++, Windows)
InterlockedCompareExchangePointer(&choice, NULL, last);.......
http://tinesware.blogspot.com/2009/07/simple-lockfree-queue-c-windows.html
TITLE : Multithreading in C++0x part 6: Lazy initialization and double-checked locking with atomics | Just Software Solutions - Custom Software Development
expensive_data* get_single_data() { static expensive_data* data; if (!::InterlockedCompareExchangePointer(reinterpret_cast(&data), nullptr, nullptr)) { std::lock_guard lk(m); // Win32 API equivalent here if(!data) { expensive_data* tdata = new expensive_data(); //tdata ... fill expensive data if (::InterlockedCompareExchangePointer(reinterpret_cast(&data), tdata, nullptr)) delete tdata; } } return data; }.......
http://www.justsoftwaresolutions.co.uk/threading/multithreading-in-c++0x-part-6-double-checked-locking.html
TITLE : A tutorial on how-to and step-by-step programming of the Windows OS: the Windows threads synchronization techniques
InterlockedCompareExchangePointer().......
http://www.tenouk.com/ModuleV2.html
TITLE : The Delphi Geek: 2011
if InterlockedCompareExchangePointer(.......
http://www.thedelphigeek.com/2011/
search Google

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