[std.concurrency] Critical bug

Sean Kelly sean at invisibleduck.org
Thu Sep 30 13:59:49 PDT 2010


osa Wrote:

> I've struggled with occasional hangs in my code using std.concurrency 
> for a while. Initially I thought it was my fault but it seems that 
> std.concurrency has a critical bug which makes it completely unusable, 
> at least for me. The problem is that in some situations message sent by 
> send() is never delivered to receive(). This happens when the thread on 
> receive() side has other linked threads (started by spawnLinked) and 
> those threads terminate causing LinkTerminated exception. And this 
> exception screws receiving thread queue completely.

Thanks for the repro.  The bug is fixed in SVN rev 2078.


More information about the Digitalmars-d mailing list