summaryrefslogtreecommitdiff
path: root/support/xthread.h
diff options
context:
space:
mode:
Diffstat (limited to 'support/xthread.h')
-rw-r--r--support/xthread.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/support/xthread.h b/support/xthread.h
index 829397cbcc..f39720cb23 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);