mirror of
https://github.com/reactos/reactos.git
synced 2025-06-12 05:28:28 +00:00
[NTOSKRNL]
- Assert against waiting at DISPATCH_LEVEL svn path=/trunk/; revision=56747
This commit is contained in:
parent
8479f39975
commit
e3eb92dddf
1 changed files with 17 additions and 9 deletions
|
@ -417,6 +417,10 @@ KeWaitForSingleObject(IN PVOID Object,
|
||||||
PLARGE_INTEGER OriginalDueTime = Timeout;
|
PLARGE_INTEGER OriginalDueTime = Timeout;
|
||||||
ULONG Hand = 0;
|
ULONG Hand = 0;
|
||||||
|
|
||||||
|
ASSERT(KeGetCurrentIrql() < DISPATCH_LEVEL ||
|
||||||
|
(KeGetCurrentIrql() == DISPATCH_LEVEL &&
|
||||||
|
Timeout && Timeout->QuadPart == 0));
|
||||||
|
|
||||||
/* Check if the lock is already held */
|
/* Check if the lock is already held */
|
||||||
if (!Thread->WaitNext) goto WaitStart;
|
if (!Thread->WaitNext) goto WaitStart;
|
||||||
|
|
||||||
|
@ -583,6 +587,10 @@ KeWaitForMultipleObjects(IN ULONG Count,
|
||||||
LARGE_INTEGER DueTime = {{0}}, NewDueTime, InterruptTime;
|
LARGE_INTEGER DueTime = {{0}}, NewDueTime, InterruptTime;
|
||||||
ULONG Index, Hand = 0;
|
ULONG Index, Hand = 0;
|
||||||
|
|
||||||
|
ASSERT(KeGetCurrentIrql() < DISPATCH_LEVEL ||
|
||||||
|
(KeGetCurrentIrql() == DISPATCH_LEVEL &&
|
||||||
|
Timeout && Timeout->QuadPart == 0));
|
||||||
|
|
||||||
/* Make sure the Wait Count is valid */
|
/* Make sure the Wait Count is valid */
|
||||||
if (!WaitBlockArray)
|
if (!WaitBlockArray)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue