pthread_barrierattr.3 (715a0284551345c8a20678c8e82a50fbe02e95ba) pthread_barrierattr.3 (3e9ed1efb85a632c2b4bee70f3ae37a464aba6ad)
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.

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

28.Dt PTHREAD_BARRIERATTR 3
29.Os
30.Sh NAME
31.Nm pthread_barrierattr_destroy , pthread_barrierattr_getpshared ,
32.Nm pthread_barrierattr_init , pthread_barrierattr_setpshared
33.Nd "manipulate a barrier attribute object"
34.Sh LIBRARY
35.Lb libpthread
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.

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

28.Dt PTHREAD_BARRIERATTR 3
29.Os
30.Sh NAME
31.Nm pthread_barrierattr_destroy , pthread_barrierattr_getpshared ,
32.Nm pthread_barrierattr_init , pthread_barrierattr_setpshared
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"
41.Ft int
42.Fn pthread_barrierattr_getpshared "const pthread_barrierattr_t *attr" "int *pshared"
43.Ft int
44.Fn pthread_barrierattr_init "pthread_barrierattr_t *attr"

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

120.Sh SEE ALSO
121.Xr pthread_barrier_destroy 3 ,
122.Xr pthread_barrier_init 3 ,
123.Xr pthread_barrier_wait 3
124.Sh HISTORY
125The
126.Fn pthread_barrierattr_*
127functions first appeared in
36.Sh SYNOPSIS
37.In pthread.h
38.Ft int
39.Fn pthread_barrierattr_destroy "pthread_barrierattr_t *attr"
40.Ft int
41.Fn pthread_barrierattr_getpshared "const pthread_barrierattr_t *attr" "int *pshared"
42.Ft int
43.Fn pthread_barrierattr_init "pthread_barrierattr_t *attr"

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

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