On 12/6/05, Joel Reymont <[EMAIL PROTECTED]> wrote: > I'm trying to implement a better waitForChildren from the docs for > Control.Concurrent. > > I would like to know when all the children exit, basically, and I > thought it would be neat to try to do that with STM.
I apologise if this doesn't make sense (I'm fairly new to Haskell), but wouldn't a single shared counter be sufficient for this? Increment for each child launched. Decrement by each finished child. When it's back down to zero, you're done. Regards, Maarten _______________________________________________ Haskell-Cafe mailing list [email protected] http://www.haskell.org/mailman/listinfo/haskell-cafe
