[Haskell-cafe] Re: Threading and FFI

Maciej Piechotka uzytkownik2 at gmail.com
Sat Feb 20 04:52:10 EST 2010


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?

Are there any requirements regarding safeness/unsafeness of such
propagation (and if there are shouldn't they be added to various places
where it is simply said that safe call simply does not call back into
Haskell).

Regards

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: This is a digitally signed message part
Url : http://www.haskell.org/pipermail/haskell-cafe/attachments/20100220/e8184cc9/attachment.bin


More information about the Haskell-Cafe mailing list