On 20/02/2010 09:52, Maciej Piechotka wrote:
Sorry I start spin-off of thread but all over the haskell code is idiom:
throwErrorIfMinus1_ $ someCode args
However this code is dependent on errno, which is thread dependent. Is
GHC making sure that errno set from C call is propagated back into
correct thread?
Yes, it is.
Are there any requirements regarding safeness/unsafeness of such
propagation
No there aren't.
Cheers,
Simon
_______________________________________________
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe