
9 Oct
2011
9 Oct
'11
11:56 a.m.
Quoting Jean-Marie Gaillourdet
That sounds plausible. Do you see any workaround? Perhaps repeatedly evaluating typeOf?
If there's a concurrency bug, surely the workaround is to protect calls to the non-thread-safe function with a lock. typeOfWorkaround lock v = do () <- takeMVar lock x <- evaluate (typeOf v) putMVar lock () return x ~d