diff options
author | Florian Weimer <fweimer@redhat.com> | 2019-11-11 09:20:09 +0100 |
---|---|---|
committer | Florian Weimer <fweimer@redhat.com> | 2019-11-11 13:40:55 +0100 |
commit | 36ada9ee2cd3b686df6952446b92816584eacbb8 (patch) | |
tree | bd4991f3db5f333589e234b3af0f7be9886832ca /support/xthread.h | |
parent | fc141ea78ee3d87c67b18488827fe2d89c9343e7 (diff) | |
download | glibc-36ada9ee2cd3b686df6952446b92816584eacbb8.zip glibc-36ada9ee2cd3b686df6952446b92816584eacbb8.tar.gz glibc-36ada9ee2cd3b686df6952446b92816584eacbb8.tar.bz2 |
support: Add support_set_small_thread_stack_size
And support_small_stack_thread_attribute
Change-Id: I1cf79a469984f8f30a4a947ee9ec2a5e74de8926
Diffstat (limited to 'support/xthread.h')
-rw-r--r-- | support/xthread.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/support/xthread.h b/support/xthread.h index 829397c..f39720c 100644 --- a/support/xthread.h +++ b/support/xthread.h @@ -75,6 +75,14 @@ void xpthread_attr_setstacksize (pthread_attr_t *attr, void xpthread_attr_setguardsize (pthread_attr_t *attr, size_t guardsize); +/* 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); + +/* Return a pointer to a thread attribute which requests a small + stack. The caller must not free this pointer. */ +pthread_attr_t *support_small_stack_thread_attribute (void); + /* This function returns non-zero if pthread_barrier_wait returned PTHREAD_BARRIER_SERIAL_THREAD. */ int xpthread_barrier_wait (pthread_barrier_t *barrier); |