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

Avoid spurious wake-up in Concurrent queues at capacity #3180

Merged
merged 1 commit into from
Sep 29, 2022

Conversation

djspiewak
Copy link
Member

Prior to this fix, we would wake up the next offerer every time we take if there are any offerers. However, in the special case of synchronous, this is not the right semantic since we haven't actually brought the queue under capacity, meaning that the offerer in question will just go back to sleep… at the end of the queue. Now we simply check to see whether it's even meaningful to wake up the offerer, and if it isn't, we just… don't.

@djspiewak djspiewak merged commit f3e80a4 into typelevel:series/3.x Sep 29, 2022
@mergify
Copy link
Contributor

mergify bot commented Oct 9, 2022

⚠️ The sha of the head commit of this PR conflicts with #3197. Mergify cannot evaluate rules on this PR. ⚠️

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants