X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=src%2Finternal%2Fpthread_impl.h;h=46d8fdd2a317c424eb669fda5b6e00db8efacfcb;hb=db11e96493d1a814266104332fa1f53a51622213;hp=01e6e5a0ba448c2c968b9da6b7fad44a804370c3;hpb=7efd14ecc92de7ccdf0209168a4ae6b73cd9e07a;p=musl diff --git a/src/internal/pthread_impl.h b/src/internal/pthread_impl.h index 01e6e5a0..46d8fdd2 100644 --- a/src/internal/pthread_impl.h +++ b/src/internal/pthread_impl.h @@ -28,13 +28,12 @@ struct pthread { pid_t tid, pid; int tsd_used, errno_val, *errno_ptr; volatile int cancel, canceldisable, cancelasync; + int detached; unsigned char *map_base; size_t map_size; void *start_arg; void *(*start)(void *); void *result; - int detached; - int exitlock; struct __ptcb *cancelbuf; void **tsd; pthread_attr_t attr; @@ -47,7 +46,8 @@ struct pthread { int unblock_cancel; int delete_timer; locale_t locale; - int killlock; + int killlock[2]; + int exitlock[2]; }; struct __timer { @@ -59,7 +59,8 @@ struct __timer { #define _a_stacksize __u.__s[0] #define _a_guardsize __u.__s[1] -#define _a_detach __u.__i[2*__SU+0] +#define _a_stackaddr __u.__s[2] +#define _a_detach __u.__i[3*__SU+0] #define _m_type __u.__i[0] #define _m_lock __u.__i[1] #define _m_waiters __u.__i[2] @@ -110,7 +111,7 @@ void __wake(volatile int *, int, int); void __synccall_lock(); void __synccall_unlock(); -#define DEFAULT_STACK_SIZE (16384-PAGE_SIZE) +#define DEFAULT_STACK_SIZE 81920 #define DEFAULT_GUARD_SIZE PAGE_SIZE #endif