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

Replace AtomicBoolean with volatile boolean field. #796

Merged

Conversation

turbanoff
Copy link
Contributor

Atomic's are good when you need CAS. If you need only read/write from different threads, volatile is enough.

Atomic's are good when you need CAS. If you need only read/write from different threads, volatile is enough.
@gnodet gnodet merged commit 4f57697 into jline:master Jan 16, 2023
@gnodet gnodet added this to the 3.22.0 milestone Jan 16, 2023
@turbanoff turbanoff deleted the use_volatile_instead_of_AtomicBoolean branch August 8, 2023 17:06
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.

2 participants