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:
phantom 2003-02-13 18:39:06 +00:00
parent 46b03b8768
commit bd72cf9687
2 changed files with 14 additions and 6 deletions

View File

@ -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

View File

@ -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