Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches

◆ UpdateTimer()

bool System.Threading.TimerQueue.UpdateTimer ( TimerQueueTimer timer,
uint dueTime,
uint period )
inline

Definition at line 255 of file TimerQueue.cs.

256 {
257 long tickCount = TickCount64;
258 long num = tickCount + dueTime;
259 bool flag = _currentAbsoluteThreshold - num >= 0;
260 if (timer._dueTime == uint.MaxValue)
261 {
262 timer._short = flag;
264 long activeCount = ActiveCount + 1;
266 }
267 else if (timer._short != flag)
268 {
270 timer._short = flag;
272 }
273 timer._dueTime = dueTime;
274 timer._period = ((period == 0) ? uint.MaxValue : period);
275 timer._startTicks = tickCount;
277 }
void LinkTimer(TimerQueueTimer timer)
bool EnsureTimerFiresBy(uint requestedDuration)
void UnlinkTimer(TimerQueueTimer timer)

References System.Threading.TimerQueue._currentAbsoluteThreshold, System.Threading.TimerQueue.ActiveCount, System.Threading.TimerQueue.EnsureTimerFiresBy(), System.Threading.TimerQueue.LinkTimer(), System.Threading.TimerQueue.TickCount64, and System.Threading.TimerQueue.UnlinkTimer().

Referenced by System.Threading.TimerQueueTimer.Change().