projects
/
musl
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
math: fix exp.s on i386 and x86_64 so the exception flags are correct
[musl]
/
src
/
thread
/
pthread_create.c
diff --git
a/src/thread/pthread_create.c
b/src/thread/pthread_create.c
index
ae2f9e4
..
94dc308
100644
(file)
--- a/
src/thread/pthread_create.c
+++ b/
src/thread/pthread_create.c
@@
-24,12
+24,12
@@
void pthread_exit(void *result)
__pthread_tsd_run_dtors();
__pthread_tsd_run_dtors();
- __lock(
&
self->exitlock);
+ __lock(self->exitlock);
/* Mark this thread dead before decrementing count */
/* Mark this thread dead before decrementing count */
- __lock(
&
self->killlock);
+ __lock(self->killlock);
self->dead = 1;
self->dead = 1;
-
a_store(&self->killlock, 0
);
+
__unlock(self->killlock
);
do n = libc.threads_minus_1;
while (n && a_cas(&libc.threads_minus_1, n, n-1)!=n);
do n = libc.threads_minus_1;
while (n && a_cas(&libc.threads_minus_1, n, n-1)!=n);