mirror of
https://github.com/reactos/reactos.git
synced 2024-12-28 10:04:49 +00:00
Revert #16904 and clarify the comment about the race condition.
svn path=/trunk/; revision=16917
This commit is contained in:
parent
6859ea0c71
commit
5b7fe4e1d2
1 changed files with 6 additions and 8 deletions
|
@ -305,17 +305,15 @@ KeUpdateRunTime(
|
|||
|
||||
/* FIXME: Do DPC rate adjustments */
|
||||
|
||||
/*
|
||||
* RACE CONDITION WARNING. If one stays at DISPATCH_LEVEL for a long
|
||||
* time the DPC routine which checks for quantum end will not be executed
|
||||
* and decrementing the quantum here would result in overflow.
|
||||
*/
|
||||
if (CurrentThread->Quantum < 0)
|
||||
return;
|
||||
|
||||
/*
|
||||
* If we're at end of quantum request software interrupt. The rest
|
||||
* is handled in KiDispatchInterrupt.
|
||||
*
|
||||
* NOTE: If one stays at DISPATCH_LEVEL for a long time the DPC routine
|
||||
* which checks for quantum end will not be executed and decrementing
|
||||
* the quantum here can result in overflow. This is not a problem since
|
||||
* we don't care about the quantum value anymore after the QuantumEnd
|
||||
* flag is set.
|
||||
*/
|
||||
if ((CurrentThread->Quantum -= 3) <= 0)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue