
24 Mar
2006
24 Mar
'06
5:34 p.m.
On Fri, Mar 24, 2006 at 11:07:53AM +0000, Malcolm Wallace wrote:
threads, and I assume that since a non-concurrent implementation has only one thread, that thread will be trying to MVar-synchronise with something that does not exist, and hence be blocked for ever. I can
Not necessarily. An MVar is a useful tool in place of an IORef. It works well when a given hunk of code is used in a threaded program, but it also works well in a non-threaded program. If they are used correctly, there is no problem. -- John