Decouple memory management for the timer handlers from the start/stop
logic.
Handles must now be allocated before they can be started and they are no
longer automatically freed when stopped. Reusing handles for restarting
or changing the timer is now possible.
This solves the problem that handles could accidentally reused.
Decouple memory management for the timer handlers from the start/stop logic.
Handles must now be allocated before they can be started and they are no longer automatically freed when stopped. Reusing handles for restarting or changing the timer is now possible.
This solves the problem that handles could accidentally reused.