diff options
author | Rich Felker <dalias@aerifal.cx> | 2016-11-08 12:09:05 -0500 |
---|---|---|
committer | Rich Felker <dalias@aerifal.cx> | 2016-11-08 12:45:03 -0500 |
commit | 31fb174dd295e50f7c5cf18d31fcfd5fe5a063b7 (patch) | |
tree | d0cc757d2280d4711d40de2fa7ca3121593f11be /include/pthread.h | |
parent | ea7891a651dc4abc1305438470f1e4cc3b64ece2 (diff) | |
download | musl-31fb174dd295e50f7c5cf18d31fcfd5fe5a063b7.tar.gz musl-31fb174dd295e50f7c5cf18d31fcfd5fe5a063b7.tar.bz2 musl-31fb174dd295e50f7c5cf18d31fcfd5fe5a063b7.tar.xz musl-31fb174dd295e50f7c5cf18d31fcfd5fe5a063b7.zip |
add limited pthread_setattr_default_np API to set stack size defaults
based on patch by Timo Teräs:
While generally this is a bad API, it is the only existing API to
affect c++ (std::thread) and c11 (thrd_create) thread stack size.
This patch allows applications only to increate stack and guard
page sizes.
Diffstat (limited to 'include/pthread.h')
-rw-r--r-- | include/pthread.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/pthread.h b/include/pthread.h index 94ef919c..bba9587e 100644 --- a/include/pthread.h +++ b/include/pthread.h @@ -215,6 +215,8 @@ int pthread_getaffinity_np(pthread_t, size_t, struct cpu_set_t *); int pthread_setaffinity_np(pthread_t, size_t, const struct cpu_set_t *); int pthread_getattr_np(pthread_t, pthread_attr_t *); int pthread_setname_np(pthread_t, const char *); +int pthread_getattr_default_np(pthread_attr_t *); +int pthread_setattr_default_np(const pthread_attr_t *); int pthread_tryjoin_np(pthread_t, void **); int pthread_timedjoin_np(pthread_t, void **, const struct timespec *); #endif |