diff options
author | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2013-10-20 20:35:45 +0200 |
---|---|---|
committer | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2013-10-20 20:35:45 +0200 |
commit | 959f7365fccd1c89be9938c2655eba9122171e6a (patch) | |
tree | e6bfd2033e25a1ff84c4ed38dc6e2f3084ff3c71 /sysdeps/generic/pt-attr-setstacksize.c | |
parent | e0e1f05656e0b443bcb4a5c61550925acba78cb6 (diff) |
Drop threadvars entirely
Diffstat (limited to 'sysdeps/generic/pt-attr-setstacksize.c')
-rw-r--r-- | sysdeps/generic/pt-attr-setstacksize.c | 19 |
1 files changed, 7 insertions, 12 deletions
diff --git a/sysdeps/generic/pt-attr-setstacksize.c b/sysdeps/generic/pt-attr-setstacksize.c index d0e5102..c88f917 100644 --- a/sysdeps/generic/pt-attr-setstacksize.c +++ b/sysdeps/generic/pt-attr-setstacksize.c @@ -24,18 +24,13 @@ int pthread_attr_setstacksize (pthread_attr_t *attr, size_t stacksize) { - if (stacksize == __pthread_default_attr.stacksize) - { - attr->stacksize = stacksize; + attr->stacksize = stacksize; - /* The guard size cannot be larger than the stack itself, as - such, if the new stack size is smaller than the guard size, - we squash the guard size. */ - if (attr->guardsize > attr->stacksize) - attr->guardsize = attr->stacksize; + /* The guard size cannot be larger than the stack itself, as + such, if the new stack size is smaller than the guard size, + we squash the guard size. */ + if (attr->guardsize > attr->stacksize) + attr->guardsize = attr->stacksize; - return 0; - } - - return ENOTSUP; + return 0; } |