pthread_mutexattr.3 (2152c4e2db88b9264c6400f2510440465d39c7b8) pthread_mutexattr.3 (4f03a2cae8ae96446064da4e8a533ab24172bdcb)
1.\" Copyright (C) 2000 Jason Evans <jasone@FreeBSD.org>.
2.\" Copyright (c) 2021 The FreeBSD Foundation, Inc.
3.\" All rights reserved.
4.\"
5.\" Part of this documentation was written by
6.\" Konstantin Belousov <kib@FreeBSD.org> under sponsorship
7.\" from the FreeBSD Foundation.
8.\"

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

24.\" PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER(S) BE
25.\" LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
26.\" CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
27.\" SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR
28.\" BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
29.\" WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE
30.\" OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
31.\" EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
1.\" Copyright (C) 2000 Jason Evans <jasone@FreeBSD.org>.
2.\" Copyright (c) 2021 The FreeBSD Foundation, Inc.
3.\" All rights reserved.
4.\"
5.\" Part of this documentation was written by
6.\" Konstantin Belousov <kib@FreeBSD.org> under sponsorship
7.\" from the FreeBSD Foundation.
8.\"

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

24.\" PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER(S) BE
25.\" LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
26.\" CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
27.\" SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR
28.\" BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
29.\" WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE
30.\" OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
31.\" EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
32.Dd October 1, 2021
32.Dd October 27, 2023
33.Dt PTHREAD_MUTEXATTR 3
34.Os
35.Sh NAME
36.Nm pthread_mutexattr_init ,
37.Nm pthread_mutexattr_destroy ,
38.Nm pthread_mutexattr_setprioceiling ,
39.Nm pthread_mutexattr_getprioceiling ,
40.Nm pthread_mutexattr_setprotocol ,

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

145The mutex may only be used by threads in the same process as the one
146that created the object.
147.It Dv PTHREAD_PROCESS_SHARED
148The mutex may be used by
149threads in processes other than the one that created the object,
150assuming other processes share access to the memory where the mutex
151was allocated.
152.El
33.Dt PTHREAD_MUTEXATTR 3
34.Os
35.Sh NAME
36.Nm pthread_mutexattr_init ,
37.Nm pthread_mutexattr_destroy ,
38.Nm pthread_mutexattr_setprioceiling ,
39.Nm pthread_mutexattr_getprioceiling ,
40.Nm pthread_mutexattr_setprotocol ,

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

145The mutex may only be used by threads in the same process as the one
146that created the object.
147.It Dv PTHREAD_PROCESS_SHARED
148The mutex may be used by
149threads in processes other than the one that created the object,
150assuming other processes share access to the memory where the mutex
151was allocated.
152.El
153See
154.Xr libthr 3
155for details of the implementation of the shared mutexes,
156and their limitations.
153.Pp
154The
155.Fn pthread_mutexattr_setrobust
156function specifies robustness attribute of the mutex.
157Possible values for the
158.Fa robust
159argument are
160.Bl -tag -width PTHREAD_MUTEX_STALLED

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

329.Fn pthread_mutexattr_getrobust
330function will fail if:
331.Bl -tag -width Er
332.It Bq Er EINVAL
333Invalid value for
334.Fa attr .
335.El
336.Sh SEE ALSO
157.Pp
158The
159.Fn pthread_mutexattr_setrobust
160function specifies robustness attribute of the mutex.
161Possible values for the
162.Fa robust
163argument are
164.Bl -tag -width PTHREAD_MUTEX_STALLED

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

333.Fn pthread_mutexattr_getrobust
334function will fail if:
335.Bl -tag -width Er
336.It Bq Er EINVAL
337Invalid value for
338.Fa attr .
339.El
340.Sh SEE ALSO
341.Xr libthr 3 ,
337.Xr pthread_mutex_init 3
338.Sh STANDARDS
339The
340.Fn pthread_mutexattr_init
341and
342.Fn pthread_mutexattr_destroy
343functions conform to
344.St -p1003.1-96

--- 19 unchanged lines hidden ---
342.Xr pthread_mutex_init 3
343.Sh STANDARDS
344The
345.Fn pthread_mutexattr_init
346and
347.Fn pthread_mutexattr_destroy
348functions conform to
349.St -p1003.1-96

--- 19 unchanged lines hidden ---