
14 Aug
2009
14 Aug
'09
5:47 p.m.
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