Sync with latest changes.

This commit is contained in:
ad 2007-02-05 15:04:21 +00:00
parent f59fec0d57
commit 20fd6754cf

View File

@ -1,4 +1,4 @@
.\" $NetBSD: condvar.9,v 1.7 2007/02/03 16:49:11 ad Exp $ .\" $NetBSD: condvar.9,v 1.8 2007/02/05 15:04:21 ad Exp $
.\" .\"
.\" Copyright (c) 2006, 2007 The NetBSD Foundation, Inc. .\" Copyright (c) 2006, 2007 The NetBSD Foundation, Inc.
.\" All rights reserved. .\" All rights reserved.
@ -34,7 +34,7 @@
.\" ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE .\" ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
.\" POSSIBILITY OF SUCH DAMAGE. .\" POSSIBILITY OF SUCH DAMAGE.
.\" .\"
.Dd February 3, 2007 .Dd February 4, 2007
.Dt CONDVAR 9 .Dt CONDVAR 9
.Os .Os
.Sh NAME .Sh NAME
@ -48,8 +48,7 @@
.Nm cv_timedwait_sig , .Nm cv_timedwait_sig ,
.Nm cv_signal , .Nm cv_signal ,
.Nm cv_broadcast , .Nm cv_broadcast ,
.Nm cv_signal_async , .Nm cv_wakeup ,
.Nm cv_broadcast_async ,
.Nm cv_has_waiters .Nm cv_has_waiters
.Nd condition variables .Nd condition variables
.Sh SYNOPSIS .Sh SYNOPSIS
@ -71,9 +70,7 @@
.Ft void .Ft void
.Fn cv_broadcast "kcondvar_t *cv" .Fn cv_broadcast "kcondvar_t *cv"
.Ft void .Ft void
.Fn cv_signal_async "kcondvar_t *cv" .Fn cv_wakeup "kcondvar_t *cv"
.Ft void
.Fn cv_broadcast_async "kcondvar_t *cv"
.Ft int .Ft int
.Fn cv_has_waiters "kcondvar_t *cv" .Fn cv_has_waiters "kcondvar_t *cv"
.Sh DESCRIPTION .Sh DESCRIPTION
@ -202,16 +199,17 @@ The mutex passed to the wait function
.Po Fa mtx Pc .Po Fa mtx Pc
must also be held when calling must also be held when calling
.Fn cv_broadcast . .Fn cv_broadcast .
.It Fn cv_signal_async "cv" , Fn cv_broadcast_async "cv" .It Fn cv_wakeup "cv"
.Pp .Pp
As per As per
.Fn cv_signal
and
.Fn cv_broadcast , .Fn cv_broadcast ,
but the interlock but the interlock
.Po Fa mtx Pc .Po Fa mtx Pc
need not be held. need not be held.
Use of these methods is discouraged as they are more costly to execute. Use of this method is discouraged it is more costly to execute than
.Fn cv_broadcast
or
.Fn cv_signal .
.It Fn cv_has_waiters "cv" .It Fn cv_has_waiters "cv"
.Pp .Pp
Return non-zero if one or more LWPs are waiting on the specified condition Return non-zero if one or more LWPs are waiting on the specified condition