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 #3125

Open
wants to merge 5 commits into
base: master
Choose a base branch
from
Open

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 approach eliminates the need for constant suspension checks during the thread's execution, reducing unnecessary overhead. The thread pauses gracefully while suspended and only resumes performing the drawing and movement tasks when explicitly notified, thereby optimizing performance and conserving system resources.

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