Peter Memishian wrote:
> > I suspect a bug in your code. Are you holding the ptr->mutex when doing
> > the cv_signal?
>
> As we've discussed in the past on this alias, that's not necessary (and
> the manpage was recently corrected).
>
>
I know its not necessary, although the lock needs to be held across at
least the change to the condition, else you can wind up missing the
signal, I think.
My concern was that perhaps the lock was held, and not properly released
(or acquired elsewhere), preventing cv_wait() from reacquiring the mutex.
-- Garrett
_______________________________________________
opensolaris-code mailing list
[email protected]
http://mail.opensolaris.org/mailman/listinfo/opensolaris-code