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

always wakeup when waiter is removed from fair semaphore #61

Closed
wants to merge 1 commit into from

Conversation

ibraheemdev
Copy link

No description provided.

// There might be another task which is ready to run,
// but couldn't, since it was blocked behind the fair waiter.
if self.is_fair {
self.wakeup_waiters();
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Interesting find. Would it be possible to show in a test that this was wrong?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hmmm, I did have a test at one point, I'll try to dig it up.

@ibraheemdev ibraheemdev closed this by deleting the head repository Jul 11, 2024
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