Paul Durrant wrote:
On 28/05/07, Garrett D'Amore <[EMAIL PROTECTED]> wrote:
You should not attempt to acquire a lock which will be held by other
functions calling cv_wait, or its brethren.  (There are ways to do that
safely, but it requires a fair bit of effort to make sure you do it safely.)


I was not aware of this restriction, nor can I find it documented.
This suggests that one cannot call cv_signal() from within an
interrupt handler. Is this true?

 Paul

Check the man page for cv_wait(9f) under CONTEXT.  As for using cv_signal
in an interrupt handler, no problem. Initially, at least, this was the most common place for
cv_signal to be called.

max

_______________________________________________
opensolaris-code mailing list
[email protected]
http://mail.opensolaris.org/mailman/listinfo/opensolaris-code

Reply via email to