
22 Feb
2010
22 Feb
'10
2:17 p.m.
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