[Bug 234805] pthread_*_destroy doesn't handle locked objects consistently

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

[Bug 234805] pthread_*_destroy doesn't handle locked objects consistently

bugzilla-noreply
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=234805

--- Comment #7 from [hidden email] ---
A commit references this bug:

Author: markj
Date: Fri Mar  8 21:07:09 UTC 2019
New revision: 344935
URL: https://svnweb.freebsd.org/changeset/base/344935

Log:
  Have pthread_cond_destroy() return EBUSY if the condvar has waiters.

  This is not required of a compliant implementation, but it's easy to
  check for and helps improve compatibility with other common
  implementations.  Moreover, it's consistent with our
  pthread_mutex_destroy().

  PR:           234805
  Reviewed by:  jhb, kib, ngie
  MFC after:    2 weeks
  Sponsored by: The FreeBSD Foundation
  Differential Revision:        https://reviews.freebsd.org/D19496

Changes:
  head/contrib/netbsd-tests/lib/libpthread/t_cond.c
  head/lib/libthr/thread/thr_cond.c

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