Deleted Added
full compact
condvar.9 (181394) condvar.9 (233648)
1.\"
2.\" Copyright (C) 2000 Jason Evans <jasone@FreeBSD.org>. All rights reserved.
3.\"
4.\" Redistribution and use in source and binary forms, with or without
5.\" modification, are permitted provided that the following conditions
6.\" are met:
7.\" 1. Redistributions of source code must retain the above copyright
8.\" notice(s), this list of conditions and the following disclaimer as

--- 10 unchanged lines hidden (view full) ---

19.\" DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
20.\" (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
21.\" SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
22.\" CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
23.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
24.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH
25.\" DAMAGE.
26.\"
1.\"
2.\" Copyright (C) 2000 Jason Evans <jasone@FreeBSD.org>. All rights reserved.
3.\"
4.\" Redistribution and use in source and binary forms, with or without
5.\" modification, are permitted provided that the following conditions
6.\" are met:
7.\" 1. Redistributions of source code must retain the above copyright
8.\" notice(s), this list of conditions and the following disclaimer as

--- 10 unchanged lines hidden (view full) ---

19.\" DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
20.\" (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
21.\" SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
22.\" CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
23.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
24.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH
25.\" DAMAGE.
26.\"
27.\" $FreeBSD: head/share/man/man9/condvar.9 181394 2008-08-07 21:00:13Z jhb $
27.\" $FreeBSD: head/share/man/man9/condvar.9 233648 2012-03-29 05:02:12Z eadler $
28.\"
29.Dd June 5, 2007
30.Dt CONDVAR 9
31.Os
32.Sh NAME
33.Nm condvar ,
34.Nm cv_init ,
35.Nm cv_destroy ,

--- 76 unchanged lines hidden (view full) ---

112The
113.Fa lock
114argument is a pointer to either a
115.Xr mutex 9 ,
116.Xr rwlock 9 ,
117or
118.Xr sx 9
119lock.
28.\"
29.Dd June 5, 2007
30.Dt CONDVAR 9
31.Os
32.Sh NAME
33.Nm condvar ,
34.Nm cv_init ,
35.Nm cv_destroy ,

--- 76 unchanged lines hidden (view full) ---

112The
113.Fa lock
114argument is a pointer to either a
115.Xr mutex 9 ,
116.Xr rwlock 9 ,
117or
118.Xr sx 9
119lock.
120A
120A
121.Xr mutex 9
122argument must be initialized with
121.Xr mutex 9
122argument must be initialized with
123.Dv MTX_DEF
123.Dv MTX_DEF
124and not
125.Dv MTX_SPIN .
126A thread must hold
127.Fa lock
128before calling
129.Fn cv_wait ,
130.Fn cv_wait_sig ,
131.Fn cv_wait_unlock ,

--- 102 unchanged lines hidden ---
124and not
125.Dv MTX_SPIN .
126A thread must hold
127.Fa lock
128before calling
129.Fn cv_wait ,
130.Fn cv_wait_sig ,
131.Fn cv_wait_unlock ,

--- 102 unchanged lines hidden ---