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

Fixed busy waiting in point #2 #3122

Closed
wants to merge 2 commits into from
Closed

Conversation

TevaTavo
Copy link

@TevaTavo TevaTavo commented Dec 7, 2024

the run() method now efficiently waits when suspendMe() is called and resumes execution when resumeMe() is invoked. This prevents unnecessary overhead by avoiding constant checks for the suspension state while the thread is running. Instead, the thread only proceeds with drawing and movement tasks when it's explicitly resumed, optimizing performance and resource usage.

@TevaTavo TevaTavo closed this Dec 7, 2024
@TevaTavo TevaTavo reopened this Dec 7, 2024
@TevaTavo TevaTavo closed this Dec 7, 2024
@TevaTavo TevaTavo reopened this Dec 7, 2024
@TevaTavo TevaTavo closed this Dec 7, 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.

1 participant