Skip to content
This repository has been archived by the owner on Aug 11, 2023. It is now read-only.

Properly synchronize CancellableLoop. #211

Open
wants to merge 2 commits into
base: obsolete/master
Choose a base branch
from
Open

Properly synchronize CancellableLoop. #211

wants to merge 2 commits into from

Conversation

okelepko
Copy link

Properly synchronize CancellableLoop.

okelepko added 2 commits June 26, 2015 23:17
The write to the thread variable was guarded by a lock, but the reads were not. Also, operations in cancel and isRunning methods were not atomic. This could lead to visibility issues and data races (NPEs).
The write to the thread variable was guarded by a lock, but the reads were not. Also, operations in cancel and isRunning methods were not atomic. This could lead to visibility issues and data races (NPEs).
@okelepko okelepko changed the title Master Properly synchronize CancellableLoop. Jul 7, 2015
@adamantivm adamantivm changed the base branch from master to obsolete/master December 18, 2016 20:37
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant