https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=198216

John Baldwin <[email protected]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |[email protected],
                   |                            |[email protected]

--- Comment #1 from John Baldwin <[email protected]> ---
Adding Konstantin to see what he thinks.

First, the manpage should not say "locked" as you don't lock a condition
variable (this appears to be copied from the pthread_mutex_destroy manpage and
just not updated after it was copied).  If it's going to fail with EBUSY it
should be because there are threads blocked on the cv via pthread_cond_*wait().

Looking at the umtx bits, I think it would not be too hard to add a check that
checked _has_user_waiters and __has_kern_waiters and failed with EBUSY if
either were non-zero.  The Open Group lists EBUSY as an optional check, but
given that it should be cheap to do I would not be opposed to adding it (and
also fixing the manpage to not say "locked").

-- 
You are receiving this mail because:
You are the assignee for the bug.
_______________________________________________
[email protected] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-doc
To unsubscribe, send any mail to "[email protected]"

Reply via email to