MCPcopy Create free account
hub / github.com/AutoHotkey/AutoHotkey / if

Function if

source/script.cpp:4073–4082  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4071 timer->mEnabled = true;
4072 ++mTimerEnabledCount;
4073 SET_MAIN_TIMER // Ensure the API timer is always running when there is at least one enabled timed subroutine.
4074 if (timer_existed)
4075 {
4076 // mEnabled is currently used to mark a running timer for deletion upon return.
4077 // Since the timer could be recreated by a different thread which just happens
4078 // to interrupt the timer thread, it seems best for consistency to reset Period
4079 // and Priority as though it had already been deleted.
4080 aUpdatePeriod = true;
4081 aUpdatePriority = true;
4082 }
4083 }
4084
4085 if (aUpdatePeriod)

Callers 2

MoveToNewFreeVarMethod · 0.70
ChangeHookStateFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected