Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
kernel: timer: Fix race condition in k_timer_start
The documentation suggests that k_timer_start can be invoked from ISR and preemptive contexts, however, an assertion failure occurs if one k_timer_start call preempts another for the same timer instance. This commit mitigates the issue by implementing a spinlock throughout the k_timer_start function, ensuring thread-safety. Fixes: #62908 Signed-off-by: Pedro Sousa <[email protected]> (cherry picked from commit 4207f4a)
- Loading branch information