forked from xt-sys/exectos
Rename RtlInterlockedDecrementLongPtr() to follow routines naming convention
This commit is contained in:
parent
cf7c467637
commit
3f2baa5b50
@ -100,7 +100,7 @@ ExReleaseRundownProtection(IN PEX_RUNDOWN_REFERENCE Descriptor)
|
|||||||
{
|
{
|
||||||
WaitBlock = (PEX_RUNDOWN_WAIT_BLOCK)(CurrentValue & ~0x1);
|
WaitBlock = (PEX_RUNDOWN_WAIT_BLOCK)(CurrentValue & ~0x1);
|
||||||
|
|
||||||
if(!RtlInterlockedDecrementLongPtr((PLONG_PTR)&WaitBlock->Count))
|
if(!RtlInterlockedDecrement64((PLONG_PTR)&WaitBlock->Count))
|
||||||
{
|
{
|
||||||
KeSetEvent(&WaitBlock->WakeEvent, 0, FALSE);
|
KeSetEvent(&WaitBlock->WakeEvent, 0, FALSE);
|
||||||
}
|
}
|
||||||
|
@ -231,7 +231,7 @@ RtlInterlockedCompareExchangePointer(IN VOLATILE PVOID *Destination,
|
|||||||
|
|
||||||
XTFASTCALL
|
XTFASTCALL
|
||||||
LONG_PTR
|
LONG_PTR
|
||||||
RtlInterlockedDecrementLongPtr(IN VOLATILE PLONG_PTR Addend);
|
RtlInterlockedDecrement64(IN VOLATILE PLONG_PTR Addend);
|
||||||
|
|
||||||
XTFASTCALL
|
XTFASTCALL
|
||||||
PVOID
|
PVOID
|
||||||
|
@ -46,7 +46,7 @@ RtlInterlockedCompareExchangePointer(IN VOLATILE PVOID *Destination,
|
|||||||
*/
|
*/
|
||||||
XTFASTCALL
|
XTFASTCALL
|
||||||
LONG_PTR
|
LONG_PTR
|
||||||
RtlInterlockedDecrementLongPtr(IN VOLATILE PLONG_PTR Addend)
|
RtlInterlockedDecrement64(IN VOLATILE PLONG_PTR Addend)
|
||||||
{
|
{
|
||||||
return (LONG_PTR)__sync_sub_and_fetch(Addend, 1);
|
return (LONG_PTR)__sync_sub_and_fetch(Addend, 1);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user