ReactOS  0.4.15-dev-3302-ga37d9a4
interlck.c
Go to the documentation of this file.
1 /*
2  * COPYRIGHT: See COPYING in the top level directory
3  * PROJECT: ReactOS Runtime Library
4  * PURPOSE: RTL Interlocked Routines
5  * FILE: lib/rtl/interlck.c
6  * PROGRAMERS: Stefan Ginsberg (stefan.ginsberg@reactos.org)
7  */
8 
9 /* INCLUDES *****************************************************************/
10 
11 #include <rtl.h>
12 
13 #define NDEBUG
14 #include <debug.h>
15 
16 /* FUNCTIONS ***************************************************************/
17 
19 NTAPI
21  LONGLONG Exchange,
22  LONGLONG Comparand)
23 {
24  /* Just call the intrinsic */
25  return _InterlockedCompareExchange64(Destination, Exchange, Comparand);
26 }
__int64 _InterlockedCompareExchange64(_Interlocked_operand_ __int64 volatile *_Destination, __int64 _Exchange, __int64 _Comparand)
NTSTATUS(* NTAPI)(IN PFILE_FULL_EA_INFORMATION EaBuffer, IN ULONG EaLength, OUT PULONG ErrorOffset)
Definition: IoEaTest.cpp:117
int64_t LONGLONG
Definition: typedefs.h:68
_In_ PUNICODE_STRING _Inout_ PUNICODE_STRING Destination
Definition: rtlfuncs.h:2950
LONGLONG NTAPI RtlInterlockedCompareExchange64(LONGLONG volatile *Destination, LONGLONG Exchange, LONGLONG Comparand)
Definition: interlck.c:20