1
0
mirror of https://sourceware.org/git/glibc.git synced 2025-08-08 17:42:12 +03:00

support: Add support_small_thread_stack_size

It returns the minimum stack size large enough to cover most internal
glibc stack usage.
This commit is contained in:
Adhemerval Zanella
2020-12-29 11:52:41 -03:00
parent c6e0b0b5b0
commit ecdb06cdf2
2 changed files with 11 additions and 3 deletions

View File

@@ -75,6 +75,8 @@ void xpthread_attr_setstacksize (pthread_attr_t *attr,
void xpthread_attr_setguardsize (pthread_attr_t *attr,
size_t guardsize);
/* Return the stack size used on support_set_small_thread_stack_size. */
size_t support_small_thread_stack_size (void);
/* Set the stack size in ATTR to a small value, but still large enough
to cover most internal glibc stack usage. */
void support_set_small_thread_stack_size (pthread_attr_t *attr);