X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=src%2Fthread%2Fpthread_attr_init.c;h=463a8d20751256fccce53af7ae6925de7fc1e9ff;hb=3733c831f293b3bbfd0e51faec8ee71112c62c3e;hp=a962b46080608acf8f20288f36ff6bab9537d11a;hpb=14992d4384990d40f6d3cfb799780fb696d77762;p=musl diff --git a/src/thread/pthread_attr_init.c b/src/thread/pthread_attr_init.c index a962b460..463a8d20 100644 --- a/src/thread/pthread_attr_init.c +++ b/src/thread/pthread_attr_init.c @@ -1,12 +1,11 @@ #include "pthread_impl.h" -extern size_t __default_stacksize; -extern size_t __default_guardsize; - 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; }