From 4a65af23ace2b1dcd2ba3f382ca8e0d0839ff4ff Mon Sep 17 00:00:00 2001 From: christos Date: Wed, 31 Dec 2008 13:57:54 +0000 Subject: [PATCH] mention that these may fail with EPERM. From Anon Ymous --- lib/libpthread/pthread_cond_wait.3 | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/lib/libpthread/pthread_cond_wait.3 b/lib/libpthread/pthread_cond_wait.3 index 3a6e81f9c031..8551dbc42ba3 100644 --- a/lib/libpthread/pthread_cond_wait.3 +++ b/lib/libpthread/pthread_cond_wait.3 @@ -1,4 +1,4 @@ -.\" $NetBSD: pthread_cond_wait.3,v 1.9 2008/05/26 08:43:08 wiz Exp $ +.\" $NetBSD: pthread_cond_wait.3,v 1.10 2008/12/31 13:57:54 christos Exp $ .\" .\" Copyright (c) 2002, 2008 The NetBSD Foundation, Inc. .\" All rights reserved. @@ -177,6 +177,17 @@ or .Fa abstime is invalid. .El +.Pp +.Fn pthread_cond_wait +and +.Fn pthread_cond_timedwait +may fail if: +.Bl -tag -width Er +.It Bq Er EPERM +The value specified by +.Fa mutex +is not locked in condition wait. +.El .Sh SEE ALSO .Xr pthread_cond_broadcast 3 , .Xr pthread_cond_destroy 3 ,