Issue 6156 - thread mbox conditions are only notified when the mailbox is emptied.
Summary: thread mbox conditions are only notified when the mailbox is emptied.
Status: NEW
Alias: None
Product: D
Classification: Unclassified
Component: phobos (show other issues)
Version: D2
Hardware: All All
: P3 normal
Assignee: RazvanN
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-06-14 13:57 UTC by ari edelkind
Modified: 2024-12-01 16:14 UTC (History)
3 users (show)

See Also:


Attachments
test case demonstrating blocking until mbox is fully emptied (465 bytes, application/octet-stream)
2011-06-14 13:57 UTC, ari edelkind
Details

Note You need to log in before you can comment on or make changes to this issue.
Description ari edelkind 2011-06-14 13:57:20 UTC
Created attachment 999 [details]
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 berni44 2020-01-03 11:12:16 UTC
Even worse: It's not enough to be completely emptied, an other call to receiveOnly is needed...
Comment 2 dlangBugzillaToGithub 2024-12-01 16:14:16 UTC
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