diff options
author | Stefan Sperling <stsp@cvs.openbsd.org> | 2020-04-03 13:05:09 +0000 |
---|---|---|
committer | Stefan Sperling <stsp@cvs.openbsd.org> | 2020-04-03 13:05:09 +0000 |
commit | b6c8c2bfc00218e08cb66b253b1a3c1a52aeec2f (patch) | |
tree | 856d1cac7792f23c0ee2ec8e2f12e950f33444ea | |
parent | 8a34bb11dee91bfc883a53d931195f657ea78f96 (diff) |
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
-rw-r--r-- | lib/libpthread/man/pthread_mutex_destroy.3 | 6 |
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 , |