临时开启时需要跳过最近一轮休眠,跳过以后需要关闭开关,否则会导致一直跳过休眠
This commit is contained in:
parent
86fbdef4bd
commit
802b9bc153
|
@ -382,6 +382,7 @@ void TaskScheduler::Execute(uint msMax, bool& cancel)
|
||||||
Int64 ms = (Int64)Sys.Ms() - (Int64)now;
|
Int64 ms = (Int64)Sys.Ms() - (Int64)now;
|
||||||
TotalSleep += ms;
|
TotalSleep += ms;
|
||||||
}
|
}
|
||||||
|
_SkipSleep = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
uint TaskScheduler::ExecuteForWait(uint msMax, bool& cancel)
|
uint TaskScheduler::ExecuteForWait(uint msMax, bool& cancel)
|
||||||
|
|
Loading…
Reference in New Issue