mirror of
https://github.com/reactos/reactos.git
synced 2024-12-28 18:15:11 +00:00
[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:
parent
bac6c8579c
commit
a4585313a5
1 changed files with 4 additions and 1 deletions
|
@ -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;
|
||||
|
||||
|
|
Loading…
Reference in a new issue