Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FuriTimer: Use an event instead of a volatile bool to wait for deletion #3887

Merged
merged 2 commits into from
Sep 8, 2024

Conversation

CookiePLMonster
Copy link
Contributor

@CookiePLMonster CookiePLMonster commented Sep 8, 2024

What's new

Further improves over #3865, now furi_timer_free uses an event to wait for the timer to be deleted instead of looping on a volatile bool.

FuriThread could benefit from something similar too, but the event would have to be made part of the thread structure, so it's not worth it at the moment.

Verification

  • Verify timers still work (and release) as intended.

Checklist (For Reviewer)

  • PR has description of feature/bug or link to Confluence/Jira task
  • Description contains actions to verify feature/bugfix
  • I've built this code, uploaded it to the device and verified feature/bugfix

@skotopes skotopes merged commit 70d8951 into flipperdevices:dev Sep 8, 2024
11 checks passed
ofabel pushed a commit to ofabel/flipperzero-firmware that referenced this pull request Sep 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants