projects
/
musl
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
add missing EHWPOISON to bits/errno.h
[musl]
/
src
/
internal
/
pthread_impl.h
diff --git
a/src/internal/pthread_impl.h
b/src/internal/pthread_impl.h
index
56b92b2
..
4215e67
100644
(file)
--- a/
src/internal/pthread_impl.h
+++ b/
src/internal/pthread_impl.h
@@
-2,17
+2,9
@@
#define _PTHREAD_IMPL_H
#include <pthread.h>
#define _PTHREAD_IMPL_H
#include <pthread.h>
-#include <sched.h>
#include <signal.h>
#include <signal.h>
-#include <unistd.h>
-#include <sys/mman.h>
#include <errno.h>
#include <limits.h>
#include <errno.h>
#include <limits.h>
-#include <inttypes.h>
-#include <setjmp.h>
-#include <string.h>
-#include <time.h>
-#include <locale.h>
#include "libc.h"
#include "syscall.h"
#include "atomic.h"
#include "libc.h"
#include "syscall.h"
#include "atomic.h"
@@
-22,7
+14,7
@@
struct pthread {
struct pthread *self;
struct pthread {
struct pthread *self;
- void *dtv, *unused1, *unused2;
+ void *
*
dtv, *unused1, *unused2;
uintptr_t sysinfo;
uintptr_t canary;
pid_t tid, pid;
uintptr_t sysinfo;
uintptr_t canary;
pid_t tid, pid;
@@
-48,6
+40,8
@@
struct pthread {
locale_t locale;
int killlock[2];
int exitlock[2];
locale_t locale;
int killlock[2];
int exitlock[2];
+ int startlock[2];
+ unsigned long sigmask[__SYSCALL_SSLEN/sizeof(long)];
};
struct __timer {
};
struct __timer {
@@
-61,6
+55,9
@@
struct __timer {
#define _a_guardsize __u.__s[1]
#define _a_stackaddr __u.__s[2]
#define _a_detach __u.__i[3*__SU+0]
#define _a_guardsize __u.__s[1]
#define _a_stackaddr __u.__s[2]
#define _a_detach __u.__i[3*__SU+0]
+#define _a_sched __u.__i[3*__SU+1]
+#define _a_policy __u.__i[3*__SU+2]
+#define _a_prio __u.__i[3*__SU+3]
#define _m_type __u.__i[0]
#define _m_lock __u.__i[1]
#define _m_waiters __u.__i[2]
#define _m_type __u.__i[0]
#define _m_lock __u.__i[1]
#define _m_waiters __u.__i[2]
@@
-111,8
+108,9
@@
int __timedwait(volatile int *, int, clockid_t, const struct timespec *, void (*
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 __synccall_lock();
-void __synccall_unlock();
+void __acquire_ptc();
+void __release_ptc();
+void __inhibit_ptc();
#define DEFAULT_STACK_SIZE 81920
#define DEFAULT_GUARD_SIZE PAGE_SIZE
#define DEFAULT_STACK_SIZE 81920
#define DEFAULT_GUARD_SIZE PAGE_SIZE