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

fix: fix race condition in timer #42

Merged
merged 1 commit into from
Dec 23, 2021
Merged

Conversation

andrzej-stencel
Copy link
Contributor

When scheduling a new task using the Timer class, the lock protecting the timer object is taken optimistically, which can cause a race condition where the new timer thread does not start its successor.

@andrzej-stencel andrzej-stencel requested a review from a team as a code owner December 23, 2021 09:17
When scheduling a new task using the Timer class,
the lock protecting the timer object is taken optimistically,
which can cause a race condition
where the new timer thread does not start its successor.
@andrzej-stencel andrzej-stencel force-pushed the fix-timer-race-condition branch from 2ded3c4 to 7a2f10a Compare December 23, 2021 09:33
@andrzej-stencel andrzej-stencel merged commit 6b23c0c into main Dec 23, 2021
@andrzej-stencel andrzej-stencel deleted the fix-timer-race-condition branch December 23, 2021 09:35
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