www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 6156] New: thread mbox conditions are only notified when the mailbox is emptied.

http://d.puremagic.com/issues/show_bug.cgi?id=6156

           Summary: thread mbox conditions are only notified when the
                    mailbox is emptied.
           Product: D
           Version: D2
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Phobos
        AssignedTo: nobody puremagic.com
        ReportedBy: edelkind+puremagic gmail.com



13:57:20 PDT ---
Created an attachment (id=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.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Jun 14 2011