pthread_condattr.3 (fa9896e082a1046ff4fbc75fcba4d18d1f2efc19) | pthread_condattr.3 (4f03a2cae8ae96446064da4e8a533ab24172bdcb) |
---|---|
1.\" Copyright (C) 2000 Jason Evans <jasone@FreeBSD.org>. 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(s), this list of conditions and the following disclaimer as --- 10 unchanged lines hidden (view full) --- 19.\" PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER(S) BE 20.\" LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR 21.\" CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF 22.\" SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR 23.\" BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, 24.\" WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE 25.\" OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, 26.\" EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | 1.\" Copyright (C) 2000 Jason Evans <jasone@FreeBSD.org>. 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(s), this list of conditions and the following disclaimer as --- 10 unchanged lines hidden (view full) --- 19.\" PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER(S) BE 20.\" LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR 21.\" CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF 22.\" SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR 23.\" BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, 24.\" WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE 25.\" OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, 26.\" EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
27.Dd May 31, 2016 | 27.Dd October 27, 2023 |
28.Dt PTHREAD_CONDATTR 3 29.Os 30.Sh NAME 31.Nm pthread_condattr_init , 32.Nm pthread_condattr_destroy , 33.Nm pthread_condattr_getclock , 34.Nm pthread_condattr_setclock , 35.Nm pthread_condattr_getpshared , --- 71 unchanged lines hidden (view full) --- 107.Bl -tag -width ".Dv PTHREAD_PROCESS_PRIVATE" 108.It Dv PTHREAD_PROCESS_PRIVATE 109The condition variable it is attached to may only be accessed by 110threads in the same process as the one that created the object. 111.It Dv PTHREAD_PROCESS_SHARED 112The condition variable it is attached to may be accessed by 113threads in processes other than the one that created the object. 114.El | 28.Dt PTHREAD_CONDATTR 3 29.Os 30.Sh NAME 31.Nm pthread_condattr_init , 32.Nm pthread_condattr_destroy , 33.Nm pthread_condattr_getclock , 34.Nm pthread_condattr_setclock , 35.Nm pthread_condattr_getpshared , --- 71 unchanged lines hidden (view full) --- 107.Bl -tag -width ".Dv PTHREAD_PROCESS_PRIVATE" 108.It Dv PTHREAD_PROCESS_PRIVATE 109The condition variable it is attached to may only be accessed by 110threads in the same process as the one that created the object. 111.It Dv PTHREAD_PROCESS_SHARED 112The condition variable it is attached to may be accessed by 113threads in processes other than the one that created the object. 114.El |
115See 116.Xr libthr 3 117for details of the implementation of shared condition variables, 118and their limitations. |
|
115.Sh RETURN VALUES 116If successful, these functions return 0. 117Otherwise, an error number is returned to indicate the error. 118.Sh ERRORS 119The 120.Fn pthread_condattr_init 121function will fail if: 122.Bl -tag -width Er --- 25 unchanged lines hidden (view full) --- 148function will fail if: 149.Bl -tag -width Er 150.It Bq Er EINVAL 151The value specified in 152.Fa pshared 153is not one of the allowed values. 154.El 155.Sh SEE ALSO | 119.Sh RETURN VALUES 120If successful, these functions return 0. 121Otherwise, an error number is returned to indicate the error. 122.Sh ERRORS 123The 124.Fn pthread_condattr_init 125function will fail if: 126.Bl -tag -width Er --- 25 unchanged lines hidden (view full) --- 152function will fail if: 153.Bl -tag -width Er 154.It Bq Er EINVAL 155The value specified in 156.Fa pshared 157is not one of the allowed values. 158.El 159.Sh SEE ALSO |
160.Xr libthr 3 , |
|
156.Xr pthread_cond_init 3 , 157.Xr pthread_cond_timedwait 3 158.Sh STANDARDS 159The 160.Fn pthread_condattr_init 161and 162.Fn pthread_condattr_destroy 163functions conform to 164.St -p1003.1-96 | 161.Xr pthread_cond_init 3 , 162.Xr pthread_cond_timedwait 3 163.Sh STANDARDS 164The 165.Fn pthread_condattr_init 166and 167.Fn pthread_condattr_destroy 168functions conform to 169.St -p1003.1-96 |