[Haskell-cafe] Re: Threading and FFI
Simon Marlow
marlowsd at gmail.com
Mon Feb 22 09:17:48 EST 2010
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
More information about the Haskell-Cafe
mailing list