[Haskell-cafe] Re: Parallel combinator, performance advice

Gleb Alexeyev gleb.alexeev at gmail.com
Wed Apr 8 09:12:48 EDT 2009

Neil Mitchell wrote:

> I've just found that QSem _ISN'T_ valid below 0, so the above code
> won't actually work with QSem as it stands.

I may be missing something, but I guess this code will work if 'newQSem 
(-n)' is replaced with 'newQSemN n', every 'signalQSem sem' with 
'signalQSemN sem 1' and 'waitQSem sem' with 'waitQSemN sem n'.

More information about the Haskell-Cafe mailing list