mirror of
https://github.com/reactos/reactos.git
synced 2025-07-31 12:22:22 +00:00
[RTL]
- 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:
parent
0b8509a565
commit
45a06d507a
8 changed files with 56 additions and 48 deletions
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue