projects
/
musl
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
prepare strcoll/wcscoll for LC_COLLATE support and add ABI symbols
[musl]
/
src
/
thread
/
pthread_spin_lock.c
diff --git
a/src/thread/pthread_spin_lock.c
b/src/thread/pthread_spin_lock.c
index
0ab3d64
..
df575f0
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)
{
int pthread_spin_lock(pthread_spinlock_t *s)
{
- while (a_
xchg
(s, 1)) a_spin();
+ while (a_
swap
(s, 1)) a_spin();
return 0;
}
return 0;
}