X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=src%2Fthread%2Fpthread_attr_init.c;h=463a8d20751256fccce53af7ae6925de7fc1e9ff;hb=1ef37aa00ea830dfda76e04e3d941cafa74d8b76;hp=969e0a3805e9299070eddd8a2b43cf7d6be160b1;hpb=571744447c23f91feb6439948f3a619aca850dfb;p=musl diff --git a/src/thread/pthread_attr_init.c b/src/thread/pthread_attr_init.c index 969e0a38..463a8d20 100644 --- a/src/thread/pthread_attr_init.c +++ b/src/thread/pthread_attr_init.c @@ -3,5 +3,9 @@ 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; }