Avalonia
Avalonia copied to clipboard
Avoid lock in timers
What does the pull request do?
Avoid lock
in timers.
What is the current behavior?
Some timers do use interval + locks, some - Timer.Change()
.
What is the updated/expected behavior with this PR?
Timer.Change()
can avoid unnessessary timer fiering and thread locking.
Connected with: #8691
You can test this PR using the following package version. 0.10.999-cibuild0023000-beta
. (feed url: https://nuget.avaloniaui.net/repository/avalonia-all/index.json) [PRBUILDID]
You can test this PR using the following package version. 0.10.999-cibuild0023015-beta
. (feed url: https://nuget.avaloniaui.net/repository/avalonia-all/index.json) [PRBUILDID]
You can test this PR using the following package version. 0.10.999-cibuild0023151-beta
. (feed url: https://nuget.avaloniaui.net/repository/avalonia-all/index.json) [PRBUILDID]