Quoth C K Kashyap <ckkashyap@gmail.com>,
...
> Say I have a haskell function 'f' that does a forkIO and starts an actionOnce control returns to f's caller, outside of the Haskell runtime,
> "a". I create a DLL of this haskell code and inovke "f" from C. Can I
> expect the "a" to continue to run once "f" has returned to C?
then there isn't any way to dispatch IO threads - that's done by
the runtime, so it can happen only while executing in the runtime.
I am not a forkIO expert, that's just how it appears to me from my
limited understanding of how they work.
For extra credit - do the old IO threads resume if you call 'f' again,
so you'd have more each time? (I don't know!)
Donn
_______________________________________________
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe