| 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) |
no outgoing calls
no test coverage detected