Set the default guardsize and stacksize in the default thread

attribute when the library is initialized.
This commit is contained in:
deischen 2005-02-15 15:02:11 +00:00
parent 93764b6de1
commit 80b24bb8d5
2 changed files with 4 additions and 0 deletions

View File

@ -435,6 +435,8 @@ init_private(void)
_thr_stack_default = THR_STACK32_DEFAULT;
_thr_stack_initial = THR_STACK32_INITIAL;
}
_pthread_attr_default.guardsize_attr = _thr_guard_default;
_pthread_attr_default.stacksize_attr = _thr_stack_default;
init_once = 1; /* Don't do this again. */
} else {
/*

View File

@ -435,6 +435,8 @@ init_private(void)
_thr_stack_default = THR_STACK32_DEFAULT;
_thr_stack_initial = THR_STACK32_INITIAL;
}
_pthread_attr_default.guardsize_attr = _thr_guard_default;
_pthread_attr_default.stacksize_attr = _thr_stack_default;
init_once = 1; /* Don't do this again. */
} else {
/*