[NTVDM]: at the end of a cpu slice, yield execution to other threads in the system.

svn path=/trunk/; revision=67851
This commit is contained in:
Hermès Bélusca-Maïto 2015-05-22 21:21:43 +00:00
parent bac6c8579c
commit a4585313a5

View file

@ -118,13 +118,16 @@ VOID ClockUpdate(VOID)
/* Update the time of the last timer tick */
Timer->LastTick.QuadPart += Ticks * Timer->Delay;
}
/* Yield execution to other threads */
NtYieldExecution();
}
}
PHARDWARE_TIMER CreateHardwareTimer(ULONG Flags, ULONGLONG Delay, PHARDWARE_TIMER_PROC Callback)
{
PHARDWARE_TIMER Timer;
Timer = RtlAllocateHeap(RtlGetProcessHeap(), 0, sizeof(*Timer));
if (Timer == NULL) return NULL;