mirror of
https://github.com/reactos/reactos.git
synced 2024-07-21 11:48:04 +00:00
KiAcquire/ReleaseSpinLock adaption
svn path=/trunk/; revision=7766
This commit is contained in:
parent
1d53ea429e
commit
848b80b405
|
@ -435,10 +435,11 @@ KeRemoveQueueApc (PKAPC Apc)
|
||||||
PKTHREAD TargetThread;
|
PKTHREAD TargetThread;
|
||||||
|
|
||||||
KeRaiseIrql(HIGH_LEVEL, &oldIrql);
|
KeRaiseIrql(HIGH_LEVEL, &oldIrql);
|
||||||
KeAcquireSpinLockAtDpcLevel(&PiApcLock);
|
KiAcquireSpinLock(&PiApcLock);
|
||||||
if (Apc->Inserted == FALSE)
|
if (Apc->Inserted == FALSE)
|
||||||
{
|
{
|
||||||
KeReleaseSpinLock(&PiApcLock, oldIrql);
|
KiReleaseSpinLock(&PiApcLock);
|
||||||
|
KeLowerIrql(oldIrql);
|
||||||
return(FALSE);
|
return(FALSE);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -454,7 +455,8 @@ KeRemoveQueueApc (PKAPC Apc)
|
||||||
}
|
}
|
||||||
Apc->Inserted = FALSE;
|
Apc->Inserted = FALSE;
|
||||||
|
|
||||||
KeReleaseSpinLock(&PiApcLock, oldIrql);
|
KiReleaseSpinLock(&PiApcLock);
|
||||||
|
KeLowerIrql(oldIrql);
|
||||||
return(TRUE);
|
return(TRUE);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue