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

thread mbox conditions are only notified when the mailbox is emptied. #9908

Open
dlangBugzillaToGithub opened this issue Jun 14, 2011 · 1 comment

Comments

@dlangBugzillaToGithub
Copy link

edelkind+puremagic reported this on 2011-06-14T13:57:20Z

Transfered from https://issues.dlang.org/show_bug.cgi?id=6156

CC List

Description

Created attachment 999
test case demonstrating blocking until mbox is fully emptied

When setMaxMailboxSize(..., OnCrowding.block) is used, and m_notFull.wait() has
been activated, the mailbox must be fully emptied before a notify is sent.

Test case attached.

!!!There are attachements in the bugzilla issue that have not been copied over!!!

@dlangBugzillaToGithub
Copy link
Author

bugzilla (@WalterBright) commented on 2020-01-03T11:12:16Z

Even worse: It's not enough to be completely emptied, an other call to receiveOnly is needed...

@LightBender LightBender removed the P3 label Dec 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants