Break important implementation detail note into IMPLEMENTATION DETAILS
section. Add cross reference to pthread_attr_getstack() function. MFC after: 1 day
This commit is contained in:
parent
41dd2d2dfa
commit
c18f0ff70c
@ -46,9 +46,6 @@ structure are exact values of attributes provided at thread creation
|
||||
time (as parameter to
|
||||
.Fn pthread_create
|
||||
function), except stack address.
|
||||
.Fn pthread_attr_get_np
|
||||
will always return pointer to thread's real stack address regardless
|
||||
to its value in original attributes structure.
|
||||
.Pp
|
||||
Value returned as
|
||||
.Fa dst
|
||||
@ -60,9 +57,15 @@ structure.
|
||||
Parameter
|
||||
.Fa dst
|
||||
should point to allocated memory area big enough to fit this structure.
|
||||
.Pp
|
||||
It is HIGHLY RECOMMENDED to use
|
||||
.Xr pthread_attr_init 3
|
||||
function to allocate attribute storage.
|
||||
.Sh IMPLEMENTATION DETAILS
|
||||
The
|
||||
.Fn pthread_attr_get_np
|
||||
function will always return pointer to thread's real stack address
|
||||
regardless to its value in original attributes structure.
|
||||
.Sh EXAMPLES
|
||||
.Bd -literal
|
||||
size_t
|
||||
@ -100,6 +103,7 @@ thread ID.
|
||||
.Xr pthread_attr_getschedparam 3 ,
|
||||
.Xr pthread_attr_getschedpolicy 3 ,
|
||||
.Xr pthread_attr_getscope 3 ,
|
||||
.Xr pthread_attr_getstack 3 ,
|
||||
.Xr pthread_attr_getstackaddr 3 ,
|
||||
.Xr pthread_attr_getstacksize 3 ,
|
||||
.Xr pthread_attr_init 3
|
||||
|
@ -46,9 +46,6 @@ structure are exact values of attributes provided at thread creation
|
||||
time (as parameter to
|
||||
.Fn pthread_create
|
||||
function), except stack address.
|
||||
.Fn pthread_attr_get_np
|
||||
will always return pointer to thread's real stack address regardless
|
||||
to its value in original attributes structure.
|
||||
.Pp
|
||||
Value returned as
|
||||
.Fa dst
|
||||
@ -60,9 +57,15 @@ structure.
|
||||
Parameter
|
||||
.Fa dst
|
||||
should point to allocated memory area big enough to fit this structure.
|
||||
.Pp
|
||||
It is HIGHLY RECOMMENDED to use
|
||||
.Xr pthread_attr_init 3
|
||||
function to allocate attribute storage.
|
||||
.Sh IMPLEMENTATION DETAILS
|
||||
The
|
||||
.Fn pthread_attr_get_np
|
||||
function will always return pointer to thread's real stack address
|
||||
regardless to its value in original attributes structure.
|
||||
.Sh EXAMPLES
|
||||
.Bd -literal
|
||||
size_t
|
||||
@ -100,6 +103,7 @@ thread ID.
|
||||
.Xr pthread_attr_getschedparam 3 ,
|
||||
.Xr pthread_attr_getschedpolicy 3 ,
|
||||
.Xr pthread_attr_getscope 3 ,
|
||||
.Xr pthread_attr_getstack 3 ,
|
||||
.Xr pthread_attr_getstackaddr 3 ,
|
||||
.Xr pthread_attr_getstacksize 3 ,
|
||||
.Xr pthread_attr_init 3
|
||||
|
Loading…
Reference in New Issue
Block a user