summaryrefslogtreecommitdiffstats
path: root/lib/libpthread/man/pthread_mutex_destroy.3
diff options
context:
space:
mode:
authorstsp <stsp@openbsd.org>2020-04-03 13:05:08 +0000
committerstsp <stsp@openbsd.org>2020-04-03 13:05:08 +0000
commit25b7f502516e2f1c6e01335bfd66c89e94faf9c4 (patch)
treec3c423958bc5f768b6065bb4b7f8a2b716a39238 /lib/libpthread/man/pthread_mutex_destroy.3
parentStop logging the entire command queue every time we add something, (diff)
downloadwireguard-openbsd-25b7f502516e2f1c6e01335bfd66c89e94faf9c4.tar.xz
wireguard-openbsd-25b7f502516e2f1c6e01335bfd66c89e94faf9c4.zip
Clarify conditions in which pthread_mutex_destroy(3) returns EBUSY.
It happens not just if the mutex is locked by another thread, but also if any other threads refer to the mutex (e.g. by waiting for the lock). ok guenther
Diffstat (limited to 'lib/libpthread/man/pthread_mutex_destroy.3')
-rw-r--r--lib/libpthread/man/pthread_mutex_destroy.36
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/libpthread/man/pthread_mutex_destroy.3 b/lib/libpthread/man/pthread_mutex_destroy.3
index 7b61fc5cfea..5be20147a7d 100644
--- a/lib/libpthread/man/pthread_mutex_destroy.3
+++ b/lib/libpthread/man/pthread_mutex_destroy.3
@@ -1,4 +1,4 @@
-.\" $OpenBSD: pthread_mutex_destroy.3,v 1.10 2013/06/05 03:44:50 tedu Exp $
+.\" $OpenBSD: pthread_mutex_destroy.3,v 1.11 2020/04/03 13:05:08 stsp Exp $
.\"
.\" Copyright (c) 1997 Brian Cully <shmit@kublai.com>
.\" All rights reserved.
@@ -29,7 +29,7 @@
.\"
.\" $FreeBSD: pthread_mutex_destroy.3,v 1.5 1999/08/28 00:03:07 peter Exp $
.\"
-.Dd $Mdocdate: June 5 2013 $
+.Dd $Mdocdate: April 3 2020 $
.Dt PTHREAD_MUTEX_DESTROY 3
.Os
.Sh NAME
@@ -59,7 +59,7 @@ The value specified by
is invalid.
.It Bq Er EBUSY
.Fa mutex
-is locked by another thread.
+is locked or referenced by another thread.
.El
.Sh SEE ALSO
.Xr pthread_mutex_init 3 ,