mirror of
https://github.com/fluencelabs/musl
synced 2025-06-22 11:11:54 +00:00
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.
This commit is contained in:
@ -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
|
||||
|
Reference in New Issue
Block a user