
8 Apr
2009
8 Apr
'09
9:12 a.m.
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'.