Bug 6156 – thread mbox conditions are only notified when the mailbox is emptied.

Status
NEW
Severity
normal
Priority
P3
Component
phobos
Product
D
Version
D2
Platform
All
OS
All
Creation time
2011-06-14T13:57:20Z
Last change time
2024-12-01T16:14:16Z
Assigned to
RazvanN
Creator
ari edelkind
Moved to GitHub: phobos#9908 →

Attachments

IDFilenameSummaryContent-TypeSize
999messagequeue.dtest case demonstrating blocking until mbox is fully emptiedapplication/octet-stream465

Comments

Comment #0 by edelkind+puremagic — 2011-06-14T13:57:20Z
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.
Comment #1 by bugzilla — 2020-01-03T11:12:16Z
Even worse: It's not enough to be completely emptied, an other call to receiveOnly is needed...
Comment #2 by robert.schadek — 2024-12-01T16:14:16Z
THIS ISSUE HAS BEEN MOVED TO GITHUB https://github.com/dlang/phobos/issues/9908 DO NOT COMMENT HERE ANYMORE, NOBODY WILL SEE IT, THIS ISSUE HAS BEEN MOVED TO GITHUB