Hey Donn ...... thanks, it turns out that threads do resume!!! This is how
I got my gmail stuff working.
I only have a doubt if the TCP "keep/alive" stuff continues to happen or
not....

Regards,
Kashyap


On Thu, Feb 28, 2013 at 9:07 PM, Donn Cave <[email protected]> wrote:

> Quoth C K Kashyap <[email protected]>,
> ...
> > Say I have a haskell function 'f' that does a forkIO and starts an action
> > "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?
>
> Once control returns to f's caller, outside of the Haskell runtime,
> 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
> [email protected]
> http://www.haskell.org/mailman/listinfo/haskell-cafe
>
_______________________________________________
Haskell-Cafe mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/haskell-cafe

Reply via email to