projects
/
musl
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
run pthread tsd destructors when a timer thread pretends to exit
[musl]
/
src
/
internal
/
pthread_impl.h
diff --git
a/src/internal/pthread_impl.h
b/src/internal/pthread_impl.h
index
615b963
..
3e436ae
100644
(file)
--- a/
src/internal/pthread_impl.h
+++ b/
src/internal/pthread_impl.h
@@
-41,10
+41,13
@@
struct pthread {
long off;
void *pending;
} robust_list;
long off;
void *pending;
} robust_list;
+ int unblock_cancel;
+ int delete_timer;
};
struct __timer {
};
struct __timer {
- struct sigevent sev;
+ int timerid;
+ pthread_t thread;
};
#define __SU (sizeof(size_t)/sizeof(int))
};
#define __SU (sizeof(size_t)/sizeof(int))
@@
-73,7
+76,6
@@
struct __timer {
#define SIGCANCEL 32
#define SIGSYSCALL 33
#define SIGCANCEL 32
#define SIGSYSCALL 33
-#define SIGTIMER 32 /* ?? */
int __set_thread_area(void *);
int __libc_sigaction(int, const struct sigaction *, struct sigaction *);
int __set_thread_area(void *);
int __libc_sigaction(int, const struct sigaction *, struct sigaction *);
@@
-85,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 __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
#define DEFAULT_STACK_SIZE (16384-PAGE_SIZE)
#define DEFAULT_GUARD_SIZE PAGE_SIZE