X-Git-Url: http://nsz.repo.hu/git/?p=musl;a=blobdiff_plain;f=src%2Finternal%2Fpthread_impl.h;h=95ec9487baae1f902d798d9a7818cec2990ee4c9;hp=12f8ccfcba66b47dc6c7e069839fb88fccd841a9;hb=407d933052c310ebc5541dae2ecd8c4bd8f55fb9;hpb=f09e78de983a8d1daf2f6e071a998eb615f1ce67 diff --git a/src/internal/pthread_impl.h b/src/internal/pthread_impl.h index 12f8ccfc..95ec9487 100644 --- a/src/internal/pthread_impl.h +++ b/src/internal/pthread_impl.h @@ -46,6 +46,7 @@ struct pthread { int unblock_cancel; int delete_timer; locale_t locale; + int killlock; }; struct __timer { @@ -66,10 +67,8 @@ struct __timer { #define _m_count __u.__i[5] #define _c_block __u.__i[0] #define _c_clock __u.__i[1] -#define _rw_wrlock __u.__i[0] -#define _rw_readers __u.__i[1] -#define _rw_waiters __u.__i[2] -#define _rw_owner __u.__i[3] +#define _rw_lock __u.__i[0] +#define _rw_waiters __u.__i[1] #define _b_inst __u.__p[0] #define _b_limit __u.__i[2] #define _b_lock __u.__i[3] @@ -79,26 +78,28 @@ struct __timer { #define SIGTIMER 32 #define SIGCANCEL 33 -#define SIGSYSCALL 34 +#define SIGSYNCCALL 34 #define SIGPT_SET ((sigset_t *)(unsigned long [1+(sizeof(long)==4)]){ \ [sizeof(long)==4] = 3UL<<(32*(sizeof(long)>4)) }) #define SIGTIMER_SET ((sigset_t *)(unsigned long [1+(sizeof(long)==4)]){ \ 0x80000000 }) +pthread_t __pthread_self_init(void); + +int __uniclone(void *, void (*)(pthread_t), void *); int __set_thread_area(void *); int __libc_sigaction(int, const struct sigaction *, struct sigaction *); int __libc_sigprocmask(int, const sigset_t *, sigset_t *); void __lock(volatile int *); void __unmapself(void *, size_t); -int __timedwait(volatile int *, int, clockid_t, const struct timespec *, int); -int __timedwait_cp(volatile int *, int, clockid_t, const struct timespec *, int); +int __timedwait(volatile int *, int, clockid_t, const struct timespec *, void (*)(void *), void *, int); void __wait(volatile int *, volatile int *, int, int); void __wake(volatile int *, int, int); -void __rsyscall_lock(); -void __rsyscall_unlock(); +void __synccall_lock(); +void __synccall_unlock(); #define DEFAULT_STACK_SIZE (16384-PAGE_SIZE) #define DEFAULT_GUARD_SIZE PAGE_SIZE