Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

fix: Issue #2977 Properly handle suspension and resumption of BallThread#3333

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Closed
sgindeed wants to merge1 commit intoiluwatar:masterfromsgindeed:master

Conversation

sgindeed
Copy link

What does this PR do?

This PRfixes#2977
by improving BallThread to handle suspension, resumption, and termination safely. Changes include:

Thread-safe suspension/resumption using wait()/notifyAll().

Volatile flags isSuspended and isRunning ensure proper visibility.

Graceful termination with stopMe() and interruption handling.

Logging for suspend, resume, and interrupt events.

This ensures smooth animation control without deadlocks or busy-waiting

Fixes#2977

@github-actionsGitHub Actions
Copy link

Analyzing changes in this PR...

This might take a few minutes, please wait

📥 Commits

Analyzing changes from base (ede37bd) to latest commit (b9a89c0):

📁 Files being considered (1)

🔄 twin/src/main/java/com/iluwatar/twin/BallThread.java(1 hunk)


autogenerated bypresubmit.ai

Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers
No reviews
Assignees
No one assigned
Labels
None yet
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

Fix busy-waiting loops
1 participant
@sgindeed

[8]ページ先頭

©2009-2025 Movatter.jp