run pthread tsd destructors when a timer thread pretends to exit
[musl] / src / internal / pthread_impl.h
index 7ab6243..3e436ae 100644 (file)
@@ -42,6 +42,7 @@ struct pthread {
                void *pending;
        } robust_list;
        int unblock_cancel;
+       int delete_timer;
 };
 
 struct __timer {
@@ -86,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