- Use portable interlocked functions in code, define them to intrinsics for x86 and x64 in the header

svn path=/branches/cmake-bringup/; revision=49680
This commit is contained in:
Timo Kreuzer 2010-11-21 10:05:20 +00:00
parent 0b8509a565
commit 45a06d507a
8 changed files with 56 additions and 48 deletions

View file

@ -61,7 +61,7 @@ RtlCallVectoredExceptionHandlers(IN PEXCEPTION_RECORD ExceptionRecord,
if (--veh->Refs == 0)
{
RemoveEntryList (&veh->ListEntry);
_InterlockedDecrement (&RtlpVectoredExceptionsInstalled);
InterlockedDecrement (&RtlpVectoredExceptionsInstalled);
Remove = TRUE;
}
Ret = TRUE;
@ -74,7 +74,7 @@ RtlCallVectoredExceptionHandlers(IN PEXCEPTION_RECORD ExceptionRecord,
{
CurrentEntry = veh->ListEntry.Flink;
RemoveEntryList (&veh->ListEntry);
_InterlockedDecrement (&RtlpVectoredExceptionsInstalled);
InterlockedDecrement (&RtlpVectoredExceptionsInstalled);
RtlLeaveCriticalSection(&RtlpVectoredExceptionLock);
RtlFreeHeap(RtlGetProcessHeap(),
@ -136,7 +136,7 @@ RtlAddVectoredExceptionHandler(IN ULONG FirstHandler,
InsertTailList(&RtlpVectoredExceptionHead,
&veh->ListEntry);
}
_InterlockedIncrement (&RtlpVectoredExceptionsInstalled);
InterlockedIncrement (&RtlpVectoredExceptionsInstalled);
RtlLeaveCriticalSection(&RtlpVectoredExceptionLock);
}