X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=src%2Finternal%2Fpthread_impl.h;h=3e436aefc94e02ba2c35fb716dccf3629ebb6497;hb=0913560a3ffd4572d926b4f9bed3dbf3e6a1b3f0;hp=9d56e8fad4029398266ee80cd4ecdc4afa600022;hpb=93cc986ab37b14f8c6b624439ce2a2beca7b3cf7;p=musl diff --git a/src/internal/pthread_impl.h b/src/internal/pthread_impl.h index 9d56e8fa..3e436aef 100644 --- a/src/internal/pthread_impl.h +++ b/src/internal/pthread_impl.h @@ -30,13 +30,24 @@ struct pthread { void *start_arg; void *(*start)(void *); void *result; - jmp_buf exit_jmp_buf; int detached; int exitlock; struct __ptcb *cancelbuf; void **tsd; pthread_attr_t attr; volatile int dead; + struct { + void **head; + long off; + void *pending; + } robust_list; + int unblock_cancel; + int delete_timer; +}; + +struct __timer { + int timerid; + pthread_t thread; }; #define __SU (sizeof(size_t)/sizeof(int)) @@ -65,7 +76,6 @@ struct pthread { #define SIGCANCEL 32 #define SIGSYSCALL 33 -#define SIGTIMER 32 /* ?? */ int __set_thread_area(void *); int __libc_sigaction(int, const struct sigaction *, struct sigaction *); @@ -77,6 +87,9 @@ int __timedwait(volatile int *, int, clockid_t, const struct timespec *, int); void __wait(volatile int *, volatile int *, int, int); void __wake(volatile int *, int, int); +void __rsyscall_lock(); +void __rsyscall_unlock(); + #define DEFAULT_STACK_SIZE (16384-PAGE_SIZE) #define DEFAULT_GUARD_SIZE PAGE_SIZE