X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=src%2Fthread%2Fpthread_attr_init.c;h=463a8d20751256fccce53af7ae6925de7fc1e9ff;hb=c5f4b2dfea320356f69445dc1adf8f73596a3c36;hp=6693488967ff29075549b994b2e02b307b46f65c;hpb=efd4d87aa472523b07889af69874259db43b3c3c;p=musl diff --git a/src/thread/pthread_attr_init.c b/src/thread/pthread_attr_init.c index 66934889..463a8d20 100644 --- a/src/thread/pthread_attr_init.c +++ b/src/thread/pthread_attr_init.c @@ -1,8 +1,11 @@ #include "pthread_impl.h" -#include int pthread_attr_init(pthread_attr_t *a) { *a = (pthread_attr_t){0}; + __acquire_ptc(); + a->_a_stacksize = __default_stacksize; + a->_a_guardsize = __default_guardsize; + __release_ptc(); return 0; }