/* PUBLIC FUNCTIONS **********************************************************/
+BOOLEAN
+NTAPI
+KeIsWaitListEmpty(IN PVOID Object)
+{
+ UNIMPLEMENTED;
+ return FALSE;
+}
+
/*
* @implemented
*/
LARGE_INTEGER DueTime, NewDueTime, InterruptTime;
ULONG Hand = 0;
+ if (Thread->WaitNext)
+ ASSERT(KeGetCurrentIrql() == DISPATCH_LEVEL);
+ else
+ ASSERT(KeGetCurrentIrql() <= APC_LEVEL);
+
/* If this is a user-mode wait of 0 seconds, yield execution */
if (!(Interval->QuadPart) && (WaitMode != KernelMode))
{
if (!(Alertable) && !(Thread->ApcState.UserApcPending))
{
/* Yield execution */
- NtYieldExecution();
+ return NtYieldExecution();
}
}
else if (KeGetCurrentIrql() == DISPATCH_LEVEL &&
(!Timeout || Timeout->QuadPart != 0))
{
- /* HACK: tcpip is broken and waits with spinlocks acquired (bug #7129) */
+ /* HACK: tcpip is broken and waits with spinlocks acquired (CORE-6473) */
DPRINT("%s called at DISPATCH_LEVEL with non-zero timeout!\n",
__FUNCTION__);
}