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

Timers: acquire/release semaphores in try/finally pair #163

Merged
merged 2 commits into from
May 24, 2023

Conversation

JohannesKauffmann
Copy link
Contributor

This ensures that semaphores are always released in the finally block. The early return in ScheduleNextAsync now also releases the semaphore.

This ensures that semaphores are always released in the finally block.
The early return in ScheduleNextAsync now also releases the semaphore.
No functional changes.
@Naamloos
Copy link
Owner

Hey! Thanks a lot for your contribution :) I'll review this real quick when I get home in about 15 minutes.

@Naamloos
Copy link
Owner

LGTM

@Naamloos Naamloos merged commit 6f4de2c into Naamloos:master May 24, 2023
1 check passed
@JohannesKauffmann JohannesKauffmann deleted the semaphore-finally branch May 25, 2023 06:07
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.

None yet

2 participants