projects
/
oweals
/
musl.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
optimize i386 ___tls_get_addr asm
[oweals/musl.git]
/
src
/
thread
/
pthread_spin_lock.c
diff --git
a/src/thread/pthread_spin_lock.c
b/src/thread/pthread_spin_lock.c
index 59fa6ea89ad2e322f0071724c7ab09275a4a3258..df575f0858681b76afb8895478778b67e8ca2a7b 100644
(file)
--- a/
src/thread/pthread_spin_lock.c
+++ b/
src/thread/pthread_spin_lock.c
@@
-2,6
+2,6
@@
int pthread_spin_lock(pthread_spinlock_t *s)
{
- while (a_
xchg(s, 1)
);
+ while (a_
swap(s, 1)) a_spin(
);
return 0;
}