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

🐛 Fix race and an abandoned mutex #180

Merged
merged 7 commits into from
Nov 21, 2019
Merged

Conversation

nathan-moore
Copy link
Member

@nathan-moore nathan-moore commented Oct 23, 2019

Summary:

Within lv_task, we were using a non atomic swap as a mutex. This changes these to be volatile/atomic where necessary. I also noticed a path where said "mutex" could be abandoned, so that's fixed as well.

Motivation:

Non deterministic races aren't fun.

References (optional):

Pointed out in purduesigbots/liblvgl#8

Test Plan:

  • lvgl still works.

@nathan-moore nathan-moore changed the title Fix race and fixed an abondoned mutex Fix race and an abondoned mutex Oct 23, 2019
@nathan-moore nathan-moore self-assigned this Oct 23, 2019
src/display/lv_misc/lv_task.c Outdated Show resolved Hide resolved
@nathan-moore nathan-moore changed the title Fix race and an abondoned mutex Fix race and an abandoned mutex Nov 3, 2019
@HotelCalifornia HotelCalifornia changed the title Fix race and an abandoned mutex 🐛 Fix race and an abandoned mutex Nov 3, 2019
@HotelCalifornia
Copy link
Contributor

looks good pending testing. the PR build actually finished fine, but it was unable to make the template due to some weird versioning thing

@HotelCalifornia HotelCalifornia added bug Something isn't working in progress This is currently being worked on p: normal Normal priority labels Nov 10, 2019
@HotelCalifornia HotelCalifornia added this to the 3.2.1 milestone Nov 10, 2019
@nathan-moore
Copy link
Member Author

@HotelCalifornia Seems to work fine.

@HotelCalifornia HotelCalifornia merged commit a02cefc into develop Nov 21, 2019
HotelCalifornia added a commit that referenced this pull request Nov 21, 2019
@nathan-moore nathan-moore deleted the BugFix/FixRaceInlvgl branch December 6, 2019 15:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working in progress This is currently being worked on p: normal Normal priority
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants