Deleted Added
full compact
pthread_barrierattr.3 (126000) pthread_barrierattr.3 (130643)
1.\" Copyright (c) 2004 Michael Telahun Makonnen
2.\" 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, this list of conditions and the following disclaimer.

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

17.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
18.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
19.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
20.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
21.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
22.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
23.\" SUCH DAMAGE.
24.\"
1.\" Copyright (c) 2004 Michael Telahun Makonnen
2.\" 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, this list of conditions and the following disclaimer.

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

17.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
18.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
19.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
20.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
21.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
22.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
23.\" SUCH DAMAGE.
24.\"
25.\" $FreeBSD: head/share/man/man3/pthread_barrierattr.3 126000 2004-02-19 13:51:52Z mtm $
25.\" $FreeBSD: head/share/man/man3/pthread_barrierattr.3 130643 2004-06-17 17:51:17Z ru $
26.\"
26.\"
27.\" Note: The date here should be updated whenever a non-trivial
28.\" change is made to the manual page.
29.Dd February 19, 2004
27.Dd February 19, 2004
30.Dt PTHREAD_BARRIERATTR_DESTROY 3 PTHREAD_BARRIERATTR_GETPSHARED 3 PTHREAD_BARRIERATTR_INIT 3 PTHREAD_BARRIERATTR_SETPSHARED 3
28.Dt PTHREAD_BARRIERATTR 3
31.Os
32.Sh NAME
29.Os
30.Sh NAME
33.Nm pthread_barrierattr_destroy pthread_barrierattr_getpshared
34.Nm pthread_barrierattr_init pthread_barrierattr_setpshared
31.Nm pthread_barrierattr_destroy , pthread_barrierattr_getpshared ,
32.Nm pthread_barrierattr_init , pthread_barrierattr_setpshared
35.Nd "manipulate a barrier attribute object"
36.Sh LIBRARY
37.Lb libpthread
38.Lb libthr
39.Sh SYNOPSIS
40.In pthread.h
41.Ft int
42.Fn pthread_barrierattr_destroy "pthread_barrierattr_t *attr"

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

64.Fa attr
65into the memory area pointed to by
66.Fa pshared .
67The
68.Fn pthread_barrierattr_setpshared
69function will set the process-shared attribute of
70.Fa attr
71to the value specified in
33.Nd "manipulate a barrier attribute object"
34.Sh LIBRARY
35.Lb libpthread
36.Lb libthr
37.Sh SYNOPSIS
38.In pthread.h
39.Ft int
40.Fn pthread_barrierattr_destroy "pthread_barrierattr_t *attr"

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

62.Fa attr
63into the memory area pointed to by
64.Fa pshared .
65The
66.Fn pthread_barrierattr_setpshared
67function will set the process-shared attribute of
68.Fa attr
69to the value specified in
72.Fa pshared.
70.Fa pshared .
73The argument
74.Fa pshared
75may have one of the following values:
76.Bl -tag -width ".Dv PTHREAD_PROCESS_PRIVATE"
77.It Dv PTHREAD_PROCESS_PRIVATE
78The barrier object it is attached to may only be accessed by
79threads in the same process as the one that created the object.
80.It Dv PTHREAD_PROCESS_SHARED
81The barrier object it is attached to may be accessed by
82threads in processes other than the one that created the object.
83.El
71The argument
72.Fa pshared
73may have one of the following values:
74.Bl -tag -width ".Dv PTHREAD_PROCESS_PRIVATE"
75.It Dv PTHREAD_PROCESS_PRIVATE
76The barrier object it is attached to may only be accessed by
77threads in the same process as the one that created the object.
78.It Dv PTHREAD_PROCESS_SHARED
79The barrier object it is attached to may be accessed by
80threads in processes other than the one that created the object.
81.El
84.Sh DIAGNOSTICS
85If successful all these functions will return zero.
86Otherwise an error number will be returned to indicate the error.
82.Sh RETURN VALUES
83If successful, all these functions will return zero.
84Otherwise, an error number will be returned to indicate the error.
87.Pp
85.Pp
88None of these functions will return EINTR.
89.Pp
86None of these functions will return
87.Er EINTR .
90.Sh ERRORS
91The
92.Fn pthread_barrierattr_destroy ,
93.Fn pthread_barrierattr_getpshared
94and
95.Fn pthread_barrierattr_setpshared
96functions may fail if:
97.Bl -tag -width Er

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

117.It Bq Er EINVAL
118The value specified in
119.Fa pshared
120is not one of the allowed values.
121.El
122.Sh SEE ALSO
123.Xr pthread_barrier_destroy 3 ,
124.Xr pthread_barrier_init 3 ,
88.Sh ERRORS
89The
90.Fn pthread_barrierattr_destroy ,
91.Fn pthread_barrierattr_getpshared
92and
93.Fn pthread_barrierattr_setpshared
94functions may fail if:
95.Bl -tag -width Er

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

115.It Bq Er EINVAL
116The value specified in
117.Fa pshared
118is not one of the allowed values.
119.El
120.Sh SEE ALSO
121.Xr pthread_barrier_destroy 3 ,
122.Xr pthread_barrier_init 3 ,
125.Xr pthread_barrier_wait 3 ,
123.Xr pthread_barrier_wait 3
126.Sh HISTORY
127The
124.Sh HISTORY
125The
128.Fn pthread_barrierattr
126.Fn pthread_barrierattr_*
129functions first appeared in
130.Lb libpthread
131in
132.Fx 5.2 ,
133and in
134.Lb libthr
135in
136.Fx 5.3 .
137.Sh BUGS
138The implementation of
127functions first appeared in
128.Lb libpthread
129in
130.Fx 5.2 ,
131and in
132.Lb libthr
133in
134.Fx 5.3 .
135.Sh BUGS
136The implementation of
139.Fn pthread_barriers
137barriers
140does not fully conform to
141.St -p1003.2
142because the process-shared attribute is ignored in
143.Lb libthr ,
144and in
138does not fully conform to
139.St -p1003.2
140because the process-shared attribute is ignored in
141.Lb libthr ,
142and in
145.Lb libpthread
143.Lb libpthread ;
146if any value other than
147.Dv PTHREAD_PROCESSES_PRIVATE
148is specified in a call to
144if any value other than
145.Dv PTHREAD_PROCESSES_PRIVATE
146is specified in a call to
149.Fn pthread_barrierattr_setpshared
150it will return EINVAL.
147.Fn pthread_barrierattr_setpshared ,
148it will return
149.Er EINVAL .