{
/* Lock the thread */
KiAcquireThreadLock(Thread);
-
+
/* Check again, and make sure there's not already a boost */
if ((Thread->Priority < LOW_REALTIME_PRIORITY) &&
!(Thread->PriorityDecrement))
/* Release thread lock */
KiReleaseThreadLock(Thread);
}
-
+
/* Release the dispatcher lokc */
KiReleaseDispatcherLock(OldIrql);
}
{
/* Get the Mutant */
Mutant = CONTAINING_RECORD(NextEntry, KMUTANT, MutantListEntry);
+ ASSERT_MUTANT(Mutant);
/* Make sure it's not terminating with APCs off */
if (Mutant->ApcDisable)