Bulat Ziganshin wrote:
Hello Levi,

Friday, August 7, 2009, 6:48:42 PM, you wrote:

1.  How can one safely perform a blocking wait on a system call via
FFI when compiling with -threaded

i think you should use forkOS to create OS thread dedicated to Haskell
thread

Why do you recommend forkOS here? forkOS is normally only necessary if you need to access thread-local state in the C call.

Cheers,
        Simon

_______________________________________________
Glasgow-haskell-users mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/glasgow-haskell-users

Reply via email to