Sync with latest changes.
This commit is contained in:
parent
f59fec0d57
commit
20fd6754cf
|
@ -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.
|
||||
.\" All rights reserved.
|
||||
|
@ -34,7 +34,7 @@
|
|||
.\" ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
|
||||
.\" POSSIBILITY OF SUCH DAMAGE.
|
||||
.\"
|
||||
.Dd February 3, 2007
|
||||
.Dd February 4, 2007
|
||||
.Dt CONDVAR 9
|
||||
.Os
|
||||
.Sh NAME
|
||||
|
@ -48,8 +48,7 @@
|
|||
.Nm cv_timedwait_sig ,
|
||||
.Nm cv_signal ,
|
||||
.Nm cv_broadcast ,
|
||||
.Nm cv_signal_async ,
|
||||
.Nm cv_broadcast_async ,
|
||||
.Nm cv_wakeup ,
|
||||
.Nm cv_has_waiters
|
||||
.Nd condition variables
|
||||
.Sh SYNOPSIS
|
||||
|
@ -71,9 +70,7 @@
|
|||
.Ft void
|
||||
.Fn cv_broadcast "kcondvar_t *cv"
|
||||
.Ft void
|
||||
.Fn cv_signal_async "kcondvar_t *cv"
|
||||
.Ft void
|
||||
.Fn cv_broadcast_async "kcondvar_t *cv"
|
||||
.Fn cv_wakeup "kcondvar_t *cv"
|
||||
.Ft int
|
||||
.Fn cv_has_waiters "kcondvar_t *cv"
|
||||
.Sh DESCRIPTION
|
||||
|
@ -202,16 +199,17 @@ The mutex passed to the wait function
|
|||
.Po Fa mtx Pc
|
||||
must also be held when calling
|
||||
.Fn cv_broadcast .
|
||||
.It Fn cv_signal_async "cv" , Fn cv_broadcast_async "cv"
|
||||
.It Fn cv_wakeup "cv"
|
||||
.Pp
|
||||
As per
|
||||
.Fn cv_signal
|
||||
and
|
||||
.Fn cv_broadcast ,
|
||||
but the interlock
|
||||
.Po Fa mtx Pc
|
||||
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"
|
||||
.Pp
|
||||
Return non-zero if one or more LWPs are waiting on the specified condition
|
||||
|
|
Loading…
Reference in New Issue