Typo fix: StarTimer->StartTimer (though it was funny) (#19617)

This commit is contained in:
Dustin L. Howett 2025-12-04 17:28:17 -06:00 committed by GitHub
parent c4668d99b7
commit c7c742c326
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 6 additions and 6 deletions

View File

@ -172,17 +172,17 @@ TimerDuration Renderer::GetTimerInterval(TimerHandle handle) const
return TimerDuration{ timer.interval };
}
void Renderer::StarTimer(TimerHandle handle, TimerDuration delay)
void Renderer::StartTimer(TimerHandle handle, TimerDuration delay)
{
_starTimer(handle, delay.count(), TimerReprMax);
_startTimer(handle, delay.count(), TimerReprMax);
}
void Renderer::StartRepeatingTimer(TimerHandle handle, TimerDuration interval)
{
_starTimer(handle, interval.count(), interval.count());
_startTimer(handle, interval.count(), interval.count());
}
void Renderer::_starTimer(TimerHandle handle, TimerRepr delay, TimerRepr interval)
void Renderer::_startTimer(TimerHandle handle, TimerRepr delay, TimerRepr interval)
{
// Nothing breaks if these assertions are violated, but you should still violate them.
// A timer with a 1-hour delay is weird and indicative of a bug. It should have been

View File

@ -27,7 +27,7 @@ namespace Microsoft::Console::Render
TimerHandle RegisterTimer(const char* description, TimerCallback routine);
bool IsTimerRunning(TimerHandle handle) const;
TimerDuration GetTimerInterval(TimerHandle handle) const;
void StarTimer(TimerHandle handle, TimerDuration delay);
void StartTimer(TimerHandle handle, TimerDuration delay);
void StartRepeatingTimer(TimerHandle handle, TimerDuration interval);
void StopTimer(TimerHandle handle);
@ -102,7 +102,7 @@ namespace Microsoft::Console::Render
void _waitUntilCanRender() noexcept;
// Timer handling
void _starTimer(TimerHandle handle, TimerRepr delay, TimerRepr interval);
void _startTimer(TimerHandle handle, TimerRepr delay, TimerRepr interval);
DWORD _calculateTimerMaxWait() noexcept;
void _waitUntilTimerOrRedraw() noexcept;
void _tickTimers() noexcept;