MVar Problem (Concurrent Hugs)

Andreas Gruenbacher gruenbacher-lists@geoinfo.tuwien.ac.at
Fri, 18 May 2001 17:54:49 +0200 (CEST)


On Fri, 18 May 2001, Dean Herington wrote:

> You are creating a new MVar with each listen and speak.  As a result, the
> two threads never agree on an MVar, so deadlock occurs.  Instead, you should
> create the pair of MVars in newCord.  Try the code below.
>
> [...]

Thanks, this works. Thanks!

--Andreas.