aboutsummaryrefslogtreecommitdiff
path: root/support/xthread.h
diff options
context:
space:
mode:
authorAdhemerval Zanella <adhemerval.zanella@linaro.org>2020-12-29 11:52:41 -0300
committerAdhemerval Zanella <adhemerval.zanella@linaro.org>2021-01-05 11:33:16 -0300
commitecdb06cdf22c7d37699f5420265245ff31c53b3c (patch)
treedeeeefe82be1af64318f0b722a037f0c336e9fee /support/xthread.h
parentc6e0b0b5b0b7922cdf0dce2af671e0c7e500df95 (diff)
downloadglibc-ecdb06cdf22c7d37699f5420265245ff31c53b3c.zip
glibc-ecdb06cdf22c7d37699f5420265245ff31c53b3c.tar.gz
glibc-ecdb06cdf22c7d37699f5420265245ff31c53b3c.tar.bz2
support: Add support_small_thread_stack_size
It returns the minimum stack size large enough to cover most internal glibc stack usage.
Diffstat (limited to 'support/xthread.h')
-rw-r--r--support/xthread.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/support/xthread.h b/support/xthread.h
index d57cef6..c2086db 100644
--- a/support/xthread.h
+++ b/support/xthread.h
@@ -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);