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

Ensure sleep on monitor_joypads thread #70099

Closed
wants to merge 1 commit into from

Conversation

lawnjelly
Copy link
Member

@lawnjelly lawnjelly commented Dec 15, 2022

Make sure sleep is occurring during monitor_joypads() function to ensure thread is not busy.

May fix #69942

Notes

  • This may or may not be a problem, the loop includes while (!monitor_joypads_exit.is_set()) {, which may be enough but I don't really know this bit of code.

Make sure sleep is occurring during monitor_joypads() function to ensure thread is not busy.
@lawnjelly lawnjelly requested a review from a team as a code owner December 15, 2022 09:56
@lawnjelly
Copy link
Member Author

@timothyqiu points out that if #70082 is the same freeze, then it is before #69563 was merged in 3.x, so maybe this is not the cause. Still suspicious though. 😁

@lawnjelly
Copy link
Member Author

We now think the while loop should run ok and only terminate on exit, so these two bits of evidence suggest this likely isn't the freeze, so closing.

@lawnjelly lawnjelly closed this Dec 15, 2022
@lawnjelly lawnjelly deleted the monitor_joypads_bug branch December 17, 2022 08:18
@YuriSizov YuriSizov removed this from the 3.x milestone Dec 2, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants