mirror of
https://github.com/reactos/reactos.git
synced 2025-02-24 17:34:57 +00:00
KiAcquire/ReleaseSpinLock adaption
svn path=/trunk/; revision=7766
This commit is contained in:
parent
1d53ea429e
commit
848b80b405
1 changed files with 5 additions and 3 deletions
|
@ -435,10 +435,11 @@ KeRemoveQueueApc (PKAPC Apc)
|
|||
PKTHREAD TargetThread;
|
||||
|
||||
KeRaiseIrql(HIGH_LEVEL, &oldIrql);
|
||||
KeAcquireSpinLockAtDpcLevel(&PiApcLock);
|
||||
KiAcquireSpinLock(&PiApcLock);
|
||||
if (Apc->Inserted == FALSE)
|
||||
{
|
||||
KeReleaseSpinLock(&PiApcLock, oldIrql);
|
||||
KiReleaseSpinLock(&PiApcLock);
|
||||
KeLowerIrql(oldIrql);
|
||||
return(FALSE);
|
||||
}
|
||||
|
||||
|
@ -454,7 +455,8 @@ KeRemoveQueueApc (PKAPC Apc)
|
|||
}
|
||||
Apc->Inserted = FALSE;
|
||||
|
||||
KeReleaseSpinLock(&PiApcLock, oldIrql);
|
||||
KiReleaseSpinLock(&PiApcLock);
|
||||
KeLowerIrql(oldIrql);
|
||||
return(TRUE);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue