pthread_attr.3 (98e0ffaefb0f241cda3a72395d3be04192ae0d47) pthread_attr.3 (b6413b6db8756c1ecae5e575e6516f811966046f)
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

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

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.\"
28.\" $FreeBSD$
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

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

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.\"
28.\" $FreeBSD$
29.Dd January 8, 2010
29.Dd August 17, 2018
30.Dt PTHREAD_ATTR 3
31.Os
32.Sh NAME
33.Nm pthread_attr_init ,
34.Nm pthread_attr_destroy ,
35.Nm pthread_attr_setstack ,
36.Nm pthread_attr_getstack ,
37.Nm pthread_attr_setstacksize ,

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

61.Fn pthread_attr_destroy "pthread_attr_t *attr"
62.Ft int
63.Fn pthread_attr_setstack "pthread_attr_t *attr" " void *stackaddr" "size_t stacksize"
64.Ft int
65.Fn pthread_attr_getstack "const pthread_attr_t * restrict attr" "void ** restrict stackaddr" "size_t * restrict stacksize"
66.Ft int
67.Fn pthread_attr_setstacksize "pthread_attr_t *attr" "size_t stacksize"
68.Ft int
30.Dt PTHREAD_ATTR 3
31.Os
32.Sh NAME
33.Nm pthread_attr_init ,
34.Nm pthread_attr_destroy ,
35.Nm pthread_attr_setstack ,
36.Nm pthread_attr_getstack ,
37.Nm pthread_attr_setstacksize ,

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

61.Fn pthread_attr_destroy "pthread_attr_t *attr"
62.Ft int
63.Fn pthread_attr_setstack "pthread_attr_t *attr" " void *stackaddr" "size_t stacksize"
64.Ft int
65.Fn pthread_attr_getstack "const pthread_attr_t * restrict attr" "void ** restrict stackaddr" "size_t * restrict stacksize"
66.Ft int
67.Fn pthread_attr_setstacksize "pthread_attr_t *attr" "size_t stacksize"
68.Ft int
69.Fn pthread_attr_getstacksize "const pthread_attr_t *attr" "size_t *stacksize"
69.Fn pthread_attr_getstacksize "const pthread_attr_t *restrict attr" "size_t *restrict stacksize"
70.Ft int
71.Fn pthread_attr_setguardsize "pthread_attr_t *attr" "size_t guardsize"
72.Ft int
70.Ft int
71.Fn pthread_attr_setguardsize "pthread_attr_t *attr" "size_t guardsize"
72.Ft int
73.Fn pthread_attr_getguardsize "const pthread_attr_t *attr" "size_t *guardsize"
73.Fn pthread_attr_getguardsize "const pthread_attr_t * restrict attr" "size_t * restrict guardsize"
74.Ft int
75.Fn pthread_attr_setstackaddr "pthread_attr_t *attr" "void *stackaddr"
76.Ft int
77.Fn pthread_attr_getstackaddr "const pthread_attr_t *attr" "void **stackaddr"
78.Ft int
79.Fn pthread_attr_setdetachstate "pthread_attr_t *attr" "int detachstate"
80.Ft int
81.Fn pthread_attr_getdetachstate "const pthread_attr_t *attr" "int *detachstate"
82.Ft int
83.Fn pthread_attr_setinheritsched "pthread_attr_t *attr" "int inheritsched"
84.Ft int
74.Ft int
75.Fn pthread_attr_setstackaddr "pthread_attr_t *attr" "void *stackaddr"
76.Ft int
77.Fn pthread_attr_getstackaddr "const pthread_attr_t *attr" "void **stackaddr"
78.Ft int
79.Fn pthread_attr_setdetachstate "pthread_attr_t *attr" "int detachstate"
80.Ft int
81.Fn pthread_attr_getdetachstate "const pthread_attr_t *attr" "int *detachstate"
82.Ft int
83.Fn pthread_attr_setinheritsched "pthread_attr_t *attr" "int inheritsched"
84.Ft int
85.Fn pthread_attr_getinheritsched "const pthread_attr_t *attr" "int *inheritsched"
85.Fn pthread_attr_getinheritsched "const pthread_attr_t *restrict attr" "int *restrct inheritsched"
86.Ft int
87.Fn pthread_attr_setschedparam "pthread_attr_t *attr" "const struct sched_param *param"
88.Ft int
89.Fn pthread_attr_getschedparam "const pthread_attr_t *attr" "struct sched_param *param"
90.Ft int
91.Fn pthread_attr_setschedpolicy "pthread_attr_t *attr" "int policy"
92.Ft int
86.Ft int
87.Fn pthread_attr_setschedparam "pthread_attr_t *attr" "const struct sched_param *param"
88.Ft int
89.Fn pthread_attr_getschedparam "const pthread_attr_t *attr" "struct sched_param *param"
90.Ft int
91.Fn pthread_attr_setschedpolicy "pthread_attr_t *attr" "int policy"
92.Ft int
93.Fn pthread_attr_getschedpolicy "const pthread_attr_t *attr" "int *policy"
93.Fn pthread_attr_getschedpolicy "const pthread_attr_t *restrict attr" "int *restrict policy"
94.Ft int
95.Fn pthread_attr_setscope "pthread_attr_t *attr" "int contentionscope"
96.Ft int
94.Ft int
95.Fn pthread_attr_setscope "pthread_attr_t *attr" "int contentionscope"
96.Ft int
97.Fn pthread_attr_getscope "const pthread_attr_t *attr" "int *contentionscope"
97.Fn pthread_attr_getscope "const pthread_attr_t *restrict attr" "int *restrict contentionscope"
98.Sh DESCRIPTION
99Thread attributes are used to specify parameters to
100.Fn pthread_create .
101One attribute object can be used in multiple calls to
102.Fn pthread_create ,
103with or without modifications between calls.
104.Pp
105The

--- 133 unchanged lines hidden ---
98.Sh DESCRIPTION
99Thread attributes are used to specify parameters to
100.Fn pthread_create .
101One attribute object can be used in multiple calls to
102.Fn pthread_create ,
103with or without modifications between calls.
104.Pp
105The

--- 133 unchanged lines hidden ---